Repository navigation
fix fiat value on receive - #508
Conversation
WalkthroughModified the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Deploying wallet-bitcoin with
|
| Latest commit: |
270514a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c2a36b49.wallet-bitcoin.pages.dev |
| Branch Preview URL: | https://fix-fiat-value-on-receive.wallet-bitcoin.pages.dev |
Deploying wallet-mutinynet with
|
| Latest commit: |
270514a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c2768dd5.arkade-wallet.pages.dev |
| Branch Preview URL: | https://fix-fiat-value-on-receive.arkade-wallet.pages.dev |
🔍 Arkana PR Review — wallet#508fix fiat value on receive | 1 file changed | +1 / -1 SummaryOne-line fix in AnalysisRoot cause: The previous condition Fix correctness: ✅ By checking SecurityNo security concerns — this is a UI display fix only. No transaction logic, key handling, or VTXO operations are affected. Notes
LGTM ✅ |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/components/InputAmount.tsx`:
- Around line 62-65: The effect that updates otherValue and error (calls
setOtherValue and setError) depends on useFiat, toFiat, and fiatDecimals but
only lists sats in its dependency array, so toggling fiat/sats leaves otherValue
stale; update the dependency array for that useEffect (the block that checks
asset?.assetId and calls setOtherValue(setError)) to include sats, useFiat,
toFiat, and fiatDecimals, or alternatively stabilize toFiat/fiatDecimals via
refs before using them in the effect.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 75e9b11a-f575-4d72-a1e9-8c84a778fe53
📒 Files selected for processing (1)
src/components/InputAmount.tsx
Closes #502
@pietro909 please review
Summary by CodeRabbit