Skip to content

Commit

Permalink
fix: skip decimals calculation in transaction list item
Browse files Browse the repository at this point in the history
  • Loading branch information
peronczyk committed Jun 26, 2024
1 parent 24beba4 commit 1f07a66
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/popup/components/TransactionListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ import {
formatDate,
formatTime,
relativeTimeTo,
toShiftedBigNumber,
} from '@/utils';
import {
useCurrencies,
Expand Down Expand Up @@ -153,13 +152,7 @@ export default defineComponent({
return 0;
}
return getFormattedAndRoundedFiat(
+amountRounded(
(
protocolCoin.decimals
? toShiftedBigNumber(protocolCoin.amount || 0, -protocolCoin.decimals)
: protocolCoin.amount
)!,
),
+amountRounded(protocolCoin.amount || 0),
protocolCoin.protocol,
);
});
Expand Down

0 comments on commit 1f07a66

Please sign in to comment.