From d1d8d2b4a6749d5273e24c2c5dc74395f9b46b00 Mon Sep 17 00:00:00 2001 From: Pierre Gee Date: Fri, 2 Feb 2024 11:44:02 +0800 Subject: [PATCH] fix(governance): enable neutral voting (#1925) --- .../_components/ConfirmVoteDialog.tsx | 39 ++++++++----------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/src/pages/governance/_components/ConfirmVoteDialog.tsx b/src/pages/governance/_components/ConfirmVoteDialog.tsx index 721fabb58..a0ecbf807 100644 --- a/src/pages/governance/_components/ConfirmVoteDialog.tsx +++ b/src/pages/governance/_components/ConfirmVoteDialog.tsx @@ -53,7 +53,7 @@ export function ConfirmVoteDialog({ const localStorageMasterNodeId = getLocalStorageItem( "masternodeId", - connection + connection, ); const [masternodeId, setMasternodeId] = useState(localStorageMasterNodeId); @@ -85,7 +85,7 @@ export function ConfirmVoteDialog({ {voteStage !== VoteStages.ReadyVoteId && ( @@ -193,11 +193,11 @@ function VoteForProposal({ const localStorageRememberMasterNodeId = getLocalStorageItem( "rememberMasternodeId", - connection + connection, ); const [rememberMasternodeId, setRememberMasternodeId] = useState( - localStorageRememberMasterNodeId + localStorageRememberMasterNodeId, ); const ref = useRef(null); const dimension = useWindowDimensions(); @@ -260,7 +260,7 @@ function VoteForProposal({ { "border-red-500 dark:border-dark-red-500": masternodeErrorMsg !== "", - } + }, )} >