Skip to content

Commit

Permalink
fix(feedV2): inverted swap from/to for deposits with swap (valora-inc…
Browse files Browse the repository at this point in the history
…#6204)

### Description

Oops, I inverted from/to in valora-inc#6189

### Test plan

- Manually checked from/to are now as expected for swap and deposit.

### Related issues

Part of RET-1204

### Backwards compatibility

Yes

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [x] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
  • Loading branch information
jeanregisser authored and jophish committed Nov 12, 2024
1 parent b9cf1ab commit 6bc7f2b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ export function DepositOrWithdrawContent({ transaction }: DepositOrWithdrawConte
<View style={styles.swapValueContainer}>
<TokenDisplay
testID="DepositOrWithdraw/Swap/From"
tokenId={transaction.swap.inAmount.tokenId}
amount={transaction.swap.inAmount.value}
tokenId={transaction.swap.outAmount.tokenId}
amount={transaction.swap.outAmount.value}
showLocalAmount={false}
style={styles.bodyText}
/>
<ArrowRightThick size={20} color={Colors.black} />
<TokenDisplay
testID="DepositOrWithdraw/Swap/To"
tokenId={transaction.swap.outAmount.tokenId}
amount={transaction.swap.outAmount.value}
tokenId={transaction.swap.inAmount.tokenId}
amount={transaction.swap.inAmount.value}
showLocalAmount={false}
style={styles.bodyText}
/>
Expand Down

0 comments on commit 6bc7f2b

Please sign in to comment.