Skip to content

Commit

Permalink
fix - exchange second step - timer being visible at 59:59 before redi…
Browse files Browse the repository at this point in the history
…recting
  • Loading branch information
Lyncee59 committed May 30, 2018
1 parent 6b9bfb6 commit 5160978
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CountdownTimerContainer extends React.PureComponent {
tick () {
const { handleExpiry } = this.props
const elapsed = moment.duration(moment(this.state.expiration).diff(moment()))
if (this.state.elapsed.as('milliseconds') < 0) {
if (this.state.elapsed.as('milliseconds') < 1) {
// If we reach the end of the timer, we execute the expiry callback
if (handleExpiry) { handleExpiry() }
} else {
Expand Down

0 comments on commit 5160978

Please sign in to comment.