Skip to content

Commit

Permalink
fix: minutes formatting in recipes on Readme page
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasil Dimitrov committed Aug 22, 2020
1 parent 2575806 commit acab4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -104,7 +104,7 @@ In the example above, the countdown will start at 15 seconds (one quarter before

```js
const children = ({ remainingTime }) => {
const minutes = Math.floor((remainingTime % 3600) / 60)
const minutes = Math.floor(remainingTime / 60)
const seconds = remainingTime % 60

return `${minutes}:${seconds}`
Expand Down

0 comments on commit acab4c8

Please sign in to comment.