Skip to content

Commit

Permalink
fix: incorrect amount formatting for FiatValue in Cancel Transaction …
Browse files Browse the repository at this point in the history
…flow

(cherry picked from commit 1c1cf45)
  • Loading branch information
peter-sanderson authored and komret committed Mar 5, 2025
1 parent e5b4203 commit e2eb365
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const CancelTransaction = ({ tx, selectedAccount }: CancelTransactionProp
const feePerByte = new BigNumber(composedCancelTx.feePerByte);
const fee = formatNetworkAmount(composedCancelTx.fee, tx.symbol);

const formattedOutputAmount = formatNetworkAmount(output.amount.toString(), tx.symbol);

return (
<Card
fillType="flat"
Expand Down Expand Up @@ -106,13 +108,13 @@ export const CancelTransaction = ({ tx, selectedAccount }: CancelTransactionProp
<Column gap={spacings.md} alignItems="flex-end">
<FormattedCryptoAmount
disableHiddenPlaceholder
value={formatNetworkAmount(output.amount.toString(), tx.symbol)}
value={formattedOutputAmount}
symbol={tx.symbol}
/>
<Text variant="tertiary" typographyStyle="label">
<FiatValue
disableHiddenPlaceholder
amount={output.amount.toString()}
amount={formattedOutputAmount}
symbol={tx.symbol}
/>
</Text>
Expand Down

0 comments on commit e2eb365

Please sign in to comment.