leetcode-patterns
leetcode-patterns copied to clipboard
Fix 'Reset' button resetting 'Last Solved On' dates before modal confirmation.
Description
When the 'Reset' button is pressed a modal is shown and the list checkedAt gets cleared before the confirmation.
It is expected that the list is only deleted once the reset is confirmed.
How to reproduce:
- Mark some questions as completed - the date will be shown on the right and will appear on local storage.
- Press the 'Reset' button and do nothing else.
- Reload the page to be visualize the missing dates on the 'Last Solved On' column.