From ad3e76419182dfa45401c3ade4b6c011a9b222f2 Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Sat, 26 Aug 2017 21:20:04 +0300 Subject: [PATCH] Fix react warnings --- src/cljs/commiteth/activity.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cljs/commiteth/activity.cljs b/src/cljs/commiteth/activity.cljs index df32e62..8068b75 100644 --- a/src/cljs/commiteth/activity.cljs +++ b/src/cljs/commiteth/activity.cljs @@ -32,7 +32,6 @@ issue-title item-type tokens] :as item}] - (println item) [:div.item.activity-item [:div.ui.mini.circular.image [:img {:src avatar-url}]] @@ -43,6 +42,7 @@ [:div.footer-row (when-not (= item-type "new-bounty") (for [[tla balance] (merge tokens {:ETH balance-eth})] + ^{:key (str display-name tla)} [:div.balance-badge (str (subs (str tla) 1) " " balance)])) [:div.time (moment-timestamp updated)]]]]) @@ -55,7 +55,7 @@ [:div.ui.text "No data"] (into [:div.ui.items] (for [item activity-items] - [activity-item item])))] ) + ^{:key item} [activity-item item])))] ) (defn activity-page [] (let [activity-items (rf/subscribe [:activity-feed])