Skip to content

Commit

Permalink
fix - timer not redirecting at exactly 0:00
Browse files Browse the repository at this point in the history
fix - min/max were not visible when the form is loading
  • Loading branch information
Lyncee59 committed May 30, 2018
1 parent 5160978 commit 9667087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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') < 1) {
if (this.state.elapsed.as('seconds') < 1) {
// If we reach the end of the timer, we execute the expiry callback
if (handleExpiry) { handleExpiry() }
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const Success = props => {
{formError === 'invalid' && <InvalidAmountMessage />}
</Row>
}
{!formError &&
{(!formError || formError === 'initial') &&
<Row spaced>
<OptionsContainer>
<Text weight={300} size='12px'>
Expand Down

0 comments on commit 9667087

Please sign in to comment.