Fixes bug with client page
This commit is contained in:
@@ -223,7 +223,9 @@
|
||||
:render (fn [{:client/keys [locked-until bank-accounts]}]
|
||||
[:div.flex.gap-2.flex-wrap
|
||||
(if locked-until
|
||||
(let [days-since-locked (time/in-days (time/interval locked-until (time/now)))]
|
||||
(let [days-since-locked (try (time/in-days (time/interval locked-until (time/now)))
|
||||
(catch Exception _
|
||||
0))]
|
||||
(cond
|
||||
(< days-since-locked 90)
|
||||
(com/pill {:color :primary} (format "Locked %s" (atime/unparse-local locked-until atime/normal-date)))
|
||||
|
||||
Reference in New Issue
Block a user