Skip to content

Commit

Permalink
fix: fee detail token value and symbol display
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavan Soratur authored and Pavan Soratur committed Feb 4, 2025
1 parent f7f711d commit 9ce4dca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/tangle-dapp/src/components/bridge/FeeDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ export const FeeDetail = ({
<div className="flex items-center gap-2">
<div className="flex items-center gap-1">
<Typography variant="h4" fw="bold" className="whitespace-nowrap">
{amounts.receiving.split('.')[0]}
{amounts.receiving.split('.')[1]
? `.${amounts.receiving.split('.')[1].slice(0, 6)}`
{amounts.receiving.split(' ')[0].split('.')[0]}
{amounts.receiving.split(' ')[0].split('.')[1]
? `.${amounts.receiving.split(' ')[0].split('.')[1].slice(0, 4)}`
: ''}{' '}
{amounts.receiving.split(' ')[1]}
</Typography>

<TokenIcon
Expand Down

0 comments on commit 9ce4dca

Please sign in to comment.