Dun-sin / Whisper

A fun Application to have a random chat with people safely
https://whisper.favour.dev/
MIT License
379 stars 342 forks source link

[BUG] Toggle doesn't respect darkMode state #555

Closed Judge-Paul closed 11 months ago

Judge-Paul commented 11 months ago

Description

After toggling on or off if you press cancel the toggle goes back to its previous state but the darkMode state will still be changed. Which will make the toggle and dark mode state out of sync

Screenshots

https://github.com/Dun-sin/Whisper/assets/110723341/ed6a858f-e369-40dc-a90a-4f79db61371e

Additional information

No response

🥦 Browser

Google Chrome

👀 Have you checked if this issue has been raised before?

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

github-actions[bot] commented 11 months ago

It's great having you contribute to this project by creating an issue

Make sure you are assigned to this before you work on it and you read the Contributing.md file, Thank you! Welcome to the community :nerd_face:

Dun-sin commented 11 months ago

Thanks for raising, but will fix it myself Cuz it's a little more than that