Skip to content

Conversation

TaprootFreak
Copy link

Summary

  • Fixed unnecessary nullish coalescing operator in StatCard component
  • The useCurrentLocale hook always returns a valid locale value, so the fallback was not needed

Changes

  • Removed ?? false from the Arabic locale check since locale.startsWith('ar') already returns a boolean

Test plan

  • Verified that StatCard component renders without errors
  • Linting passes successfully
  • Type checking passes

lapatric and others added 4 commits September 8, 2025 14:12
* [DEV-4354] auto-deploy to dev.bapp.juiceswap.xyz

* [DEV-4354] update workflow variables

* [DEV-4354] remove purge CDN endpoint step
The useCurrentLocale hook always returns a valid locale value,
so the nullish coalescing operator was not needed.
@TaprootFreak TaprootFreak deleted the fix/statcard-locale-error branch September 20, 2025 15:13
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