(Fix) transaction's status checking
This commit is contained in:
parent
0f3fb46584
commit
6bdb9b6cd0
|
@ -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}`);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue