Skip to content

Commit

Permalink
Merge pull request #165 from chronologic/fix/scheduling-btn
Browse files Browse the repository at this point in the history
[FIX] Scheduling button handling in case of an error
  • Loading branch information
e00dan authored Mar 2, 2018
2 parents d365344 + 896711f commit 3ed5bfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/ScheduleWizard/ScheduleWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,13 @@ class ScheduleWizard extends Component {
if (scheduled) {
scheduleStore.reset();
history.push('/awaiting/scheduler/' + scheduled.transactionHash);
document.body.className = originalBodyCss;
}
} catch (error) {
showNotification('Transaction cancelled by the user.', 'danger', 4000);
this.scheduleBtn.innerHTML = 'Schedule';
}

this.scheduleBtn.innerHTML = 'Schedule';
document.body.className = originalBodyCss;
}

Expand Down

0 comments on commit 3ed5bfa

Please sign in to comment.