Repository navigation
fix: define missing showBoth variable in Balance component - #497
Conversation
showBoth was referenced on line 34 but never defined, causing a ReferenceError at runtime after merging #473. Define it from config.currencyDisplay and reuse it for the conditional render.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughExtracted a local boolean variable Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review — Arkana 🔍 Clean fix. ✅ Correct derivation from LGTM. |
Summary
ReferenceError: showBoth is not definedintroduced by feat(settings): default currency display to fiat only #473showBothwas used in the JSX margin expression but never definedconfig.currencyDisplay === CurrencyDisplay.Bothand reuses it for the conditional render block on line 63 (which had the same expression duplicated)Test plan
Summary by CodeRabbit