File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
apps/namadillo/src/App/Governance Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export const WithProposalId: React.FC<{ proposalId: bigint }> = ({
57
57
data : voteTxData ,
58
58
isError,
59
59
error : voteTxError ,
60
+ isPending : isPerformingTx ,
60
61
} = useAtomValue ( createVoteTxAtom ) ;
61
62
const dispatchNotification = useSetAtom ( dispatchToastNotificationAtom ) ;
62
63
@@ -191,10 +192,12 @@ export const WithProposalId: React.FC<{ proposalId: bigint }> = ({
191
192
< ActionButton
192
193
type = "submit"
193
194
disabled = {
194
- ! canVote . data || typeof selectedVoteType === "undefined"
195
+ ! canVote . data ||
196
+ typeof selectedVoteType === "undefined" ||
197
+ isPerformingTx
195
198
}
196
199
>
197
- Confirm
200
+ { isPerformingTx ? "Processing..." : " Confirm" }
198
201
</ ActionButton >
199
202
</ Stack >
200
203
) }
You can’t perform that action at this time.
0 commit comments