diff --git a/src/components/popups/ProposalDeposit.vue b/src/components/popups/ProposalDeposit.vue index 346cf09..d8c37b5 100644 --- a/src/components/popups/ProposalDeposit.vue +++ b/src/components/popups/ProposalDeposit.vue @@ -82,15 +82,18 @@ const signDeposit = async (isCLI = false) => { transacting.value = true; const depot = await depositProposal(depositOptions, isCLI); if ((depot as DeliverTxResponse).code !== 0 && !isCLI) { + transacting.value = false; errorMsg.value = (depot as DeliverTxResponse).rawLog ?? toPlainObjectString(depot); displayState.value = "error"; } else { + transacting.value = false; cliDepositInput.value = (isCLI ? depot : "") as string; displayState.value = isCLI ? "CLI" : "deposited"; } } catch (e) { console.log(e); errorMsg.value = "" + e; + transacting.value = false; displayState.value = "error"; } logEvent("Sign Popup ProposalDeposit", { diff --git a/src/components/popups/ProposalVote.vue b/src/components/popups/ProposalVote.vue index 7f831c0..607eb9b 100644 --- a/src/components/popups/ProposalVote.vue +++ b/src/components/popups/ProposalVote.vue @@ -127,15 +127,18 @@ const signVote = async (isCLI = false) => { transacting.value = true; const vote = await (voteOptions && voteProposalFunc(voteOptions, isCLI)); if ((vote as DeliverTxResponse).code !== 0 && !isCLI) { + transacting.value = false; errorMsg.value = (vote as DeliverTxResponse).rawLog ?? toPlainObjectString(vote); displayState.value = "error"; } else { + transacting.value = false; cliVoteInput.value = (isCLI ? vote : "") as string; displayState.value = isCLI ? "CLI" : "voted"; } } catch (e) { console.log(e); errorMsg.value = "" + e; + transacting.value = false; displayState.value = "error"; }