Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(theme): avoid crash on switching back to system theme #37

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

gdarchen
Copy link
Owner

🎯 Goal

There was an issue with the ThemeSwitch component causing the application to sometimes crash when switching back to system theme.

🧠 Approach

I actually remove the entry from the LocalStorage now and removed the unnecessary close() call to close the popup.

@gdarchen gdarchen self-assigned this Jul 15, 2024
Copy link

vercel bot commented Jul 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gautier ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2024 4:30pm

@gdarchen gdarchen merged commit 0b0cc44 into main Jul 15, 2024
4 checks passed
@gdarchen gdarchen deleted the fix/theme-selector-crash branch July 15, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant