Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit 5f45d72

Browse files
author
Adam Haglund
authored
fix timer cache (#18)
1 parent 7a0e0c1 commit 5f45d72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/state/reducers/timerReducers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const { timer: cachedTimer } = JSON.parse(
3232

3333
if (cachedTimer) {
3434
initialState.timeLeft = new Time(
35-
initialState.timeLeft.minutes,
36-
initialState.timeLeft.seconds
35+
cachedTimer.timeLeft.minutes,
36+
cachedTimer.timeLeft.seconds
3737
)
3838
initialState.duration = new Time(
3939
cachedTimer.duration.minutes,

0 commit comments

Comments
 (0)