Fix bug where a previous epoch would be suggested
When it wasn't possible to go back further.
This commit is contained in:
parent
c1e077fa0a
commit
40f33585f0
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue