diff --git a/src/status_im/contexts/wallet/account/tabs/view.cljs b/src/status_im/contexts/wallet/account/tabs/view.cljs index a941a6be2ce..b9f675fe71a 100644 --- a/src/status_im/contexts/wallet/account/tabs/view.cljs +++ b/src/status_im/contexts/wallet/account/tabs/view.cljs @@ -18,7 +18,7 @@ :assets [assets/view] :collectibles [collectibles/view {:collectibles collectible-list - :on-collectible-press (fn [id] + :on-collectible-press (fn [{:keys [id]}] (rf/dispatch [:wallet/get-collectible-details id]) (rf/dispatch [:navigate-to :wallet-collectible]))}] :activity [activity/view] diff --git a/src/status_im/contexts/wallet/common/collectibles_tab/view.cljs b/src/status_im/contexts/wallet/common/collectibles_tab/view.cljs index 8a3f5b6acb5..222e5c24f17 100644 --- a/src/status_im/contexts/wallet/common/collectibles_tab/view.cljs +++ b/src/status_im/contexts/wallet/common/collectibles_tab/view.cljs @@ -33,6 +33,7 @@ :render-fn (fn [{:keys [preview-url] :as collectible}] [quo/collectible {:images [preview-url] - :on-press #(on-collectible-press collectible)}])}]))) + :on-press #(when on-collectible-press + (on-collectible-press collectible))}])}]))) (def view (quo.theme/with-theme view-internal)) diff --git a/src/status_im/contexts/wallet/home/tabs/view.cljs b/src/status_im/contexts/wallet/home/tabs/view.cljs index 6c27845277a..95669b4b8fb 100644 --- a/src/status_im/contexts/wallet/home/tabs/view.cljs +++ b/src/status_im/contexts/wallet/home/tabs/view.cljs @@ -15,7 +15,7 @@ :assets [assets/view] :collectibles [collectibles/view {:collectibles collectible-list - :on-collectible-press (fn [id] + :on-collectible-press (fn [{:keys [id]}] (rf/dispatch [:wallet/get-collectible-details id]) (rf/dispatch [:navigate-to :wallet-collectible]))}] [activity/view])]))