Skip to content

Commit 0e5b464

Browse files
committed
useTimer restart function with 5 minutes instead of 10
1 parent 06e62fc commit 0e5b464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ function MyTimer({ expiryTimestamp }) {
2525
<button onClick={pause}>Pause</button>
2626
<button onClick={resume}>Resume</button>
2727
<button onClick={() => {
28-
// Resets to 10 minutes timer
28+
// Restarts to 5 minutes timer
2929
var t = new Date();
30-
t.setSeconds(t.getSeconds() + 600);
30+
t.setSeconds(t.getSeconds() + 300);
3131
restart(t)
3232
}}>restart</button>
3333
</div>

0 commit comments

Comments
 (0)