Commit 9d21a86c authored by Ricardo J. Mendez's avatar Ricardo J. Mendez

BUGFIX: Shouldn't track deactivation without a :start-time

Otherwise we end up with a page that has in theory been viewed for
thousands of days.
parent 82fbfb64
......@@ -174,8 +174,7 @@
;; was deactivated (which defaults to now)
[app-state [_ tab end-time]]
(console/trace " Deactivating " tab)
(when (or (:active tab)
(< 0 (:start-time tab)))
(when (< 0 (:start-time tab))
(dispatch [:track-time tab (- (or end-time (now))
(:start-time tab))]))
app-state))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment