Skip to content

Commit

Permalink
Merge pull request argentlabs#1945 from argentlabs/hotfix/bn
Browse files Browse the repository at this point in the history
Hotfix/bn
  • Loading branch information
dhruvkelawala committed Mar 23, 2023
2 parents 32a88c9 + 0c6350b commit 19cf34a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ export const NftDetails: FC<NftDetailsProps> = ({
)}
</Flex>
<Flex direction="column" gap="0.5" alignItems="flex-end">
<TextWithAmount amount={amount.toString()}>
<TextWithAmount amount={amount.toFixed()}>
<P4
color={amount.isNegative() ? "error.500" : "secondary.500"}
fontWeight="bold"
>
{prettifyTokenAmount({
amount: amount.toString(),
amount: amount.toFixed(),
decimals: 0,
symbol: "NFT",
showPlusSign: true,
Expand All @@ -124,7 +124,7 @@ export const NftDetails: FC<NftDetailsProps> = ({
{/** 0 usdValue means we don't have any value */}
{isMainnet && !!usdValue && !usdValue.isZero() && (
<L2 color="neutrals.300">
{prettifyCurrencyValue(usdValue.abs().toString())}
{prettifyCurrencyValue(usdValue.abs().toFixed())}
</L2>
)}
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export const BalanceChangeOverview: FC<BalanceChangeOverviewProps> = ({
!usdValue.isZero() && (
<L2 color="neutrals.300">
{prettifyCurrencyValue(
usdValue.abs().toString(),
usdValue.abs().toFixed(),
)}
</L2>
)}
Expand Down

0 comments on commit 19cf34a

Please sign in to comment.