File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
packages/wallet-widget/src
views/Home/IntegratedWallet Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export const FilterMenu = ({
5353 const selectedNetworks = useObservable ( selectedNetworksObservable )
5454 const selectedCollections = useObservable ( selectedCollectionsObservable )
5555
56- const totalFiatValue = fiatWalletsMap . reduce ( ( acc , wallet ) => acc + Number ( wallet . fiatValue ) , 0 )
56+ const totalFiatValue = fiatWalletsMap . reduce ( ( acc , wallet ) => acc + Number ( wallet . fiatValue ) , 0 ) . toFixed ( 2 )
5757
5858 const { data : tokens } = useGetTokenBalancesSummary ( {
5959 chainIds : selectedNetworks ,
Original file line number Diff line number Diff line change @@ -75,13 +75,15 @@ export const IntegratedWallet = () => {
7575
7676 const isPending = isTokenBalancesPending || isCoinPricesPending || isConversionRatePending
7777
78- const totalFiatValue = fiatWalletsMap . reduce ( ( acc , wallet ) => {
79- if ( selectedWallets . some ( selectedWallet => selectedWallet . address === wallet . accountAddress ) ) {
80- const walletFiatValue = Number ( wallet . fiatValue )
81- return acc + walletFiatValue
82- }
83- return acc
84- } , 0 )
78+ const totalFiatValue = fiatWalletsMap
79+ . reduce ( ( acc , wallet ) => {
80+ if ( selectedWallets . some ( selectedWallet => selectedWallet . address === wallet . accountAddress ) ) {
81+ const walletFiatValue = Number ( wallet . fiatValue )
82+ return acc + walletFiatValue
83+ }
84+ return acc
85+ } , 0 )
86+ . toFixed ( 2 )
8587
8688 const coinBalances = coinBalancesUnordered . sort ( ( a , b ) => {
8789 const isHigherFiat =
You can’t perform that action at this time.
0 commit comments