reset time worked without break on startup

This commit is contained in:
Johannes Millan 2017-01-15 02:05:03 +01:00
parent 4c695355f1
commit ef8194472f

View file

@ -137,6 +137,8 @@
$rootScope.r.doneBacklogTasks = Tasks.getDoneBacklog();
$rootScope.r.currentSession = $localStorage.currentSession;
// reset after for every start
$rootScope.r.currentSession.timeWorkedWithoutBreak = undefined;
$rootScope.r.distractions = $localStorage.distractions;
@ -146,6 +148,7 @@
$rootScope.r.git = $localStorage.git;
$rootScope.r.theme = $localStorage.theme || DEFAULT_THEME;
if ($rootScope.r.theme.indexOf('dark') > -1) {