Skip to content

Commit

Permalink
fix: hide you received until bridge tx done
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Dec 20, 2024
1 parent ce8b502 commit f1147c3
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions ui/pages/bridge/transaction-details/transaction-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,22 +397,25 @@ const CrossChainSwapTxDetails = () => {
</Box>
}
/>
<TransactionDetailRow
title={t('bridgeTxDetailsYouReceived')}
value={
<Box
display={Display.Flex}
gap={1}
alignItems={AlignItems.center}
>
{t('bridgeTxDetailsTokenAmountOnChain', [
bridgeAmountReceived,
bridgeHistoryItem?.quote.destAsset.symbol,
])}
{destNetworkIconName}
</Box>
}
/>
{bridgeAmountReceived &&
bridgeHistoryItem?.quote.destAsset.symbol && (
<TransactionDetailRow
title={t('bridgeTxDetailsYouReceived')}
value={
<Box
display={Display.Flex}
gap={1}
alignItems={AlignItems.center}
>
{t('bridgeTxDetailsTokenAmountOnChain', [
bridgeAmountReceived,
bridgeHistoryItem.quote.destAsset.symbol,
])}
{destNetworkIconName}
</Box>
}
/>
)}
<TransactionDetailRow
title={t('bridgeTxDetailsTotalGasFee')}
value={
Expand Down

0 comments on commit f1147c3

Please sign in to comment.