Skip to content

Commit c93df77

Browse files
Do not format if decimals 0 (#342)
1 parent eb5bab2 commit c93df77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/wallet-widget/src/components/TransactionHistoryList/TransactionHistoryItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const TransactionHistoryItem = ({ transaction }: TransactionHistoryItemPr
155155
<div className="flex flex-row justify-between" key={index}>
156156
<div className="flex flex-row gap-2 justify-center items-center">
157157
{tokenLogoUri && <Image className="w-5" src={tokenLogoUri} alt="token logo" />}
158-
{getTransferAmountLabel(formatDisplay(amountValue), symbol, transfer.transferType)}
158+
{getTransferAmountLabel(decimals === 0 ? amount : formatDisplay(amountValue), symbol, transfer.transferType)}
159159
</div>
160160
{isPending && <Skeleton style={{ width: '35px', height: '20px' }} />}
161161
{fiatConversionRate && (

0 commit comments

Comments
 (0)