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: fix local storage check for us prices (check '1' rather than 1) #1086

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

DuroCodes
Copy link
Contributor

@DuroCodes DuroCodes commented Jan 8, 2025

currently it shows incorrect "... doubloons until next prize" since it uses global prices—even when the us region is selected:

image image

this is due to the local storage checking the result for 1 rather than '1', since the local storage has the number stringified:

image

Note

maybe it would make more sense to use their selected region rather than just us/global?

Copy link

vercel bot commented Jan 8, 2025

@DuroCodes is attempting to deploy a commit to the Hack Club Team on Vercel.

A member of the Team first needs to authorize it.

@maxwofford
Copy link
Member

Nice catch! thanks for submitting this

Copy link

vercel bot commented Jan 9, 2025

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

Name Status Preview Comments Updated (UTC)
high-seas ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 3:18pm

@maxwofford maxwofford merged commit 6e37582 into hackclub:main Jan 9, 2025
1 of 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.

2 participants