(Fix) src/components/NewBallot.jsx

This commit is contained in:
Vadim Arasev 2018-09-18 11:40:19 +03:00
parent 931ae8c058
commit b3f262674a
1 changed files with 2 additions and 0 deletions

View File

@ -291,6 +291,7 @@ export class NewBallot extends React.Component {
}
if (currentTime < emissionReleaseTime) {
commonStore.hideLoading()
const emissionReleaseTimeString = moment
.unix(emissionReleaseTime)
.utc()
@ -301,6 +302,7 @@ export class NewBallot extends React.Component {
const noActiveBallotExists = await votingContract.noActiveBallotExists()
if (!noActiveBallotExists) {
commonStore.hideLoading()
swal('Warning!', messages.PREVIOUS_BALLOT_NOT_FINALIZED, 'warning')
return
}