diff --git a/src/status_im/contexts/wallet/account/tabs/view.cljs b/src/status_im/contexts/wallet/account/tabs/view.cljs index a941a6be2c..b9f675fe71 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 8a3f5b6acb..222e5c24f1 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 6c27845277..95669b4b8f 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])]))