mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 09:19:28 +00:00
feat: use new util func
This commit is contained in:
parent
1ce29acc46
commit
36edaf9e62
@ -4,7 +4,7 @@ import { useConnectWallet } from '@web3-onboard/react'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { ethers } from 'ethers'
|
||||
|
||||
import { getFormattedWalletAddress } from '../../../utilities'
|
||||
import { formatToFixed4, getFormattedWalletAddress } from '../../../utilities'
|
||||
|
||||
const ConnectedWallet = () => {
|
||||
const [{ wallet }] = useConnectWallet()
|
||||
@ -60,7 +60,7 @@ const ConnectedWallet = () => {
|
||||
Balance
|
||||
</Text>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
{balance} ETH
|
||||
{formatToFixed4(balance)} ETH
|
||||
</Text>
|
||||
</YStack>
|
||||
</XStack>
|
||||
|
Loading…
x
Reference in New Issue
Block a user