Skip to content

Commit 3815e2a

Browse files
committed
improved formatting
1 parent 2b437ca commit 3815e2a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/modules/etherlink/explorer/EvmProposalsActionDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export const EvmProposalsActionDialog = ({ open, handleClose }: { open: boolean;
200200
{isDeploying ? (
201201
<>
202202
<Typography>Deploying Proposal...</Typography>
203+
<br />
203204
<LinearProgressLoader />
204205
</>
205206
) : (

src/services/contracts/etherlinkDAO/hooks/useEvmDaoOps.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export const useEvmDaoOps = () => {
8383
tokenContract.delegates(etherlink?.signer?.address)
8484
])
8585
const decimals = daoSelected?.decimals || 0
86-
const balanceActual = Number(balance) / Math.pow(10, decimals)
87-
const weightActual = Number(weight) / Math.pow(10, decimals)
86+
const balanceActual = parseFloat(ethers.formatUnits(balance, decimals))
87+
const weightActual = parseFloat(ethers.formatUnits(weight, decimals))
8888
setUserTokenBalance(balanceActual)
8989
setUserVotingWeight(weightActual)
9090
setUserDelegateAddress(String(delegateAddr))

0 commit comments

Comments
 (0)