Fix bug where a previous epoch would be suggested

When it wasn't possible to go back further.
This commit is contained in:
Daniel Compton 2018-01-26 14:32:40 +13:00
parent c1e077fa0a
commit 40f33585f0
1 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@
:<- [:epochs/current-epoch-id]
:<- [:epochs/match-ids]
(fn [[current ids]]
(and (pos? (count ids))
(and (< 1 (count ids))
(or (nil? current)
(> current (nth ids 0))))))
@ -247,7 +247,7 @@
:<- [:epochs/current-epoch-id]
:<- [:epochs/match-ids]
(fn [[current ids]]
(and (pos? (count ids))
(and (< 1 (count ids))
(some? current)
(< current (utils/last-in-vec ids)))))