leetcode-patterns
leetcode-patterns copied to clipboard
fix: resets the last solved date only after modal confirmation #381
As explained in #381, the 'Reset' button was wrongly deleting the 'Last Solved On' column before the user confirms deletion.
This change moves the reset logic from the toggleResetModal method to the resetHandler so that it is only invoked when the user confirms the reset action.