From 6bdb9b6cd0bec8480f2491197631bd56dce2c21b Mon Sep 17 00:00:00 2001 From: Vadim Arasev Date: Fri, 29 Jun 2018 19:41:40 +0300 Subject: [PATCH] (Fix) transaction's status checking --- src/components/NewBallot.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NewBallot.jsx b/src/components/NewBallot.jsx index 0e10e7f..a0006a7 100644 --- a/src/components/NewBallot.jsx +++ b/src/components/NewBallot.jsx @@ -226,7 +226,7 @@ export class NewBallot extends React.Component { methodToCreateBallot(startTime) .on("receipt", (tx) => { commonStore.hideLoading(); - if(tx.status === '0x1'){ + if (tx.status === true || tx.status === '0x1') { swal("Congratulations!", messages.BALLOT_CREATED_SUCCESS_MSG, "success").then((result) => { push(`${commonStore.rootPath}`); });