From 039295f157022c3219e3b64d20c987934f20817e Mon Sep 17 00:00:00 2001 From: Rob Culliton Date: Tue, 8 May 2018 17:51:04 -0400 Subject: [PATCH] now that payout receipt is working, only log for the changed case rather than all records --- src/cljs/commiteth/interceptors.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cljs/commiteth/interceptors.cljs b/src/cljs/commiteth/interceptors.cljs index 62d74db..7b8652b 100644 --- a/src/cljs/commiteth/interceptors.cljs +++ b/src/cljs/commiteth/interceptors.cljs @@ -13,10 +13,11 @@ "filters collection of bounties to only those with a field that has been recently set" (filter (fn [[issue-id owner-bounty]] (let [new-field-value (field-name owner-bounty) - old-field-value (get-in old-bounties [issue-id field-name])] - (println "old value for " field-name " is " old-field-value) - (println "new value for " field-name "is " new-field-value) - (and (nil? old-field-value) (some? new-field-value)))) + old-field-value (get-in old-bounties [issue-id field-name])] + (when (and (nil? old-field-value) (some? new-field-value)) + (println "old value for " field-name " is " old-field-value) + (println "new value for " field-name "is " new-field-value) + true))) new-bounties)) (defn dispatch-confirm-payout [bounty]