aboutsummaryrefslogtreecommitdiff
path: root/src/Update
diff options
context:
space:
mode:
Diffstat (limited to 'src/Update')
-rw-r--r--src/Update/UpdateTimer.elm5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Update/UpdateTimer.elm b/src/Update/UpdateTimer.elm
index 771ef1c..b3be088 100644
--- a/src/Update/UpdateTimer.elm
+++ b/src/Update/UpdateTimer.elm
@@ -18,10 +18,11 @@ updateTimer action timer =
{ timer | isRunning <- not timer.isRunning }
Restart ->
{ timer
- | currentTime <- timer.initialTime
+ | isRunning <- True
+ , currentTime <- initTime timer.initialTime
}
Stop ->
{ timer
| isRunning <- False
- , currentTime <- timer.initialTime
+ , currentTime <- initTime timer.initialTime
}