fixes rule
This commit is contained in:
@@ -77,12 +77,12 @@
|
||||
(re-frame/reg-sub
|
||||
::locations-for-client-or-bank-account
|
||||
(fn [db [_ client-id bank-account-id]]
|
||||
(let [client (get (:clients db) (or client (:client db)))
|
||||
(let [client (get (:clients db) (or client-id (:client db)))
|
||||
client-locations (:locations client)
|
||||
bank-account-locations (-> (by :id (:bank-accounts client))
|
||||
(get bank-account-id)
|
||||
:locations)]
|
||||
(or bank-account-locations client-locations))))
|
||||
(or (seq bank-account-locations) client-locations))))
|
||||
|
||||
(re-frame/reg-sub
|
||||
::clients-by-id
|
||||
|
||||
Reference in New Issue
Block a user