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: type assertion in useAppearance hook #28

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

matthiasweiss
Copy link
Contributor

Hello, looking further through the start kit and it looks really good, I love it!

One small thing I found: Since localStorage.getItem returns string | null, the type assertion should reflect the | null part as well. In this use case it does not matter, since the value of savedAppearance is only used in the line below, and it is defaulted there, but the assertion should be done properly.

Copy link
Contributor

@tnylea tnylea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Thanks for that addition.

@taylorotwell taylorotwell merged commit 6e145d9 into laravel:main Feb 24, 2025
2 checks passed
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.

3 participants