Skip to content

fix(tokens): lead the Get receipt with You Pay - #1312

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/get-receipt-anchor-order
Aug 22, 2026
Merged

fix(tokens): lead the Get receipt with You Pay#1312
bmc08gt merged 1 commit into
code/cashfrom
fix/get-receipt-anchor-order

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Swaps the two anchor rows on the Get receipt so the card leads with what the purchase costs.

Before: You GetAmount to convert / Conversion feeYou Pay
After: You PayAmount to convert / Conversion feeYou Get

Beyond the ordering itself, this puts the breakdown lines directly under the figure they add up to — Amount to convert + Conversion fee = You Pay — so they read as its itemisation instead of as a forward reference to a total further down the card.

Notes for review

  • Gated on isGet, following the precedent already in this file for lineSpacing. The v1 Buy receipt and v2's Add Money both still render through TokenBuyReceiptScreen and both keep leading with You Receive — neither moves here.
  • The anchors are now built as received / paid locals and the order is picked at the call site. No change to either anchor's token, amount, or fee math: You Pay is still purchase + fee, You Get is still the purchase amount.
  • Anchor renders top and bottom identically — no directional styling or arrow — so this is a pure ordering change with no layout work behind it.
  • The SwapReceiptScreen doc comment described Get as "You Get / … / You Pay"; corrected to match.
  • iOS half: fix(buy): lead the Get receipt with what you pay code-ios-app#631, which swaps the same two anchors on BuyConfirmationScreen. Land them together so the Get receipt doesn't read differently on each platform.

Swaps the Get receipt's two anchors so the amount charged sits above the
fee breakdown and the amount received closes the card. The breakdown
lines total to the top figure now, so they read as its itemisation.

Gated on isGet: the v1 Buy receipt, and v2's Add Money, still lead with
You Receive.
@github-actions github-actions Bot added type: fix Bug fix area: tokens Token accounts, balances, token info and removed type: fix Bug fix labels Aug 22, 2026
@bmc08gt
bmc08gt merged commit 8ae91d4 into code/cash Aug 22, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/get-receipt-anchor-order branch August 22, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tokens Token accounts, balances, token info

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant