From e46698ab41c7899a8949efad06f10361b947f7ab Mon Sep 17 00:00:00 2001 From: subject026 Date: Tue, 6 Aug 2024 10:32:09 +0100 Subject: [PATCH] disable btn when tx is preparing --- src/app/governance/components/CastVote.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/governance/components/CastVote.tsx b/src/app/governance/components/CastVote.tsx index dadfb7c..f06dc49 100644 --- a/src/app/governance/components/CastVote.tsx +++ b/src/app/governance/components/CastVote.tsx @@ -190,7 +190,9 @@ export function CastVote({ }); write(); }} - disabled={!userCanVote || !writeIsEnabled} + disabled={ + !userCanVote || !writeIsEnabled || prepareConfigStatus !== "success" + } > Cast Vote