Description
When opening the website in private mode or after resetting local-storage data, the theme button exhibits unexpected behavior. On the first click, it does not respond, but the button icon change and on the second click, the button icon changes parallel to the current theme. In dark mode, the button should display the light theme icon, and in light mode, it should show the dark theme icon.
Steps to Reproduce
- Open the website in private mode or after resetting local-storage data.
- Attempt to click the theme button.
Expected Behavior
The theme button should respond on the first click, and the displayed icon should correspond correctly to the selected theme (light or dark).
Actual Behavior
The theme button does not respond on the first click, but the button icon changes, displaying the incorrect theme representation.
Additional Information
Screenshots that may help in understanding or resolving the issue.
Light mode:-
Dark mode:-
Note: This issue was raised by a user and needs attention to ensure a smooth user experience.