π [BUG] - LocalStorage theme value not updated when switch to different theme
JrDevHarsh opened this issue Β· comments
Harshdeep Singh commented
Description
When a user tries to switch the current theme for the first time, the localStorage doesn't update the theme
value because the initial value of the theme
is null.
Reproduction URL
https://github.com/JunDevHarsh/Noteslify
Reproduction steps
1. Go to 'apps/web/frontendnew'
2. Start to react app on 'localhost:3000'
3. Toggle the theme button
4. See localStorage theme value. If you switch to the dark theme then the theme value in localStorage will be null or light
Screenshots
![DESCRIPTION](LINK.png)
Logs
No response
Browsers
Chrome
OS
Windows
github-actions commented
Hey @JunDevHarsh, Thanks for contributing and Congrats on opening Issue π
We will try to review as soon as possible and a maintainer will get back to you soon!
Devarshi Shimpi commented
Hey, Thanks For Report the issue along with a PR for it!!
Devarshi Shimpi commented
Fixed