diff --git a/src/components/BallotCard.jsx b/src/components/BallotCard.jsx index 1bf441e..f6308af 100644 --- a/src/components/BallotCard.jsx +++ b/src/components/BallotCard.jsx @@ -252,9 +252,11 @@ export class BallotCard extends React.Component { .on("receipt", (tx) => { commonStore.hideLoading(); if (tx.status === true || tx.status === '0x1') { - ballotsStore.ballotCards[this.props.pos].props.votingState.isFinalized = true; + this.isFinalized = true; + ballotsStore.ballotCards[this.props.pos].props.votingState.isFinalized = this.isFinalized; if (this.canBeFinalized !== null) { - ballotsStore.ballotCards[this.props.pos].props.votingState.canBeFinalized = false; + this.canBeFinalized = false; + ballotsStore.ballotCards[this.props.pos].props.votingState.canBeFinalized = this.canBeFinalized; } swal("Congratulations!", messages.FINALIZED_SUCCESS_MSG, "success").then((result) => { push(`${commonStore.rootPath}`);