From 833846605f13345d38450143eacc0830cee9acee Mon Sep 17 00:00:00 2001 From: fabiolalombardim Date: Tue, 28 May 2024 20:50:03 +0200 Subject: [PATCH] fix --- src/modules/lite/explorer/components/VoteDetails.tsx | 2 +- src/modules/lite/explorer/components/VotesDialog.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/lite/explorer/components/VoteDetails.tsx b/src/modules/lite/explorer/components/VoteDetails.tsx index 01f9dfba..209719a6 100644 --- a/src/modules/lite/explorer/components/VoteDetails.tsx +++ b/src/modules/lite/explorer/components/VoteDetails.tsx @@ -245,7 +245,7 @@ export const VoteDetails: React.FC<{ = ({ open, handleClose, choices, symbol, decimals, isXTZ, groupedVotes }) => { const descriptionElementRef = React.useRef(null) @@ -156,7 +156,7 @@ export const VotesDialog: React.FC<{ total = total.plus(new BigNumber(item.balance)) }) } - const formatted = total.div(new BigNumber(10).pow(isXTZ ? 6 : decimals)) + const formatted = total.div(new BigNumber(10).pow(isXTZ ? 6 : decimals ? decimals : 0)) return formatted } const array: any = []