From ff77597492ec521d30634401da21c95abbd27c18 Mon Sep 17 00:00:00 2001 From: Vadim Arasev Date: Mon, 2 Jul 2018 16:23:09 +0300 Subject: [PATCH] (Fix) isFinalized --- src/components/BallotCard.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}`);