(Fix) transaction's status checking

This commit is contained in:
Vadim Arasev 2018-06-29 19:41:40 +03:00
parent 0f3fb46584
commit 6bdb9b6cd0
1 changed files with 1 additions and 1 deletions

View File

@ -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}`);
});