From f52b87ef2285be6a69d17dd2679a11b1de796b55 Mon Sep 17 00:00:00 2001 From: Andrey Shovkoplyas Date: Mon, 30 Sep 2019 12:28:33 +0200 Subject: [PATCH] [#8945] "null is not an object" error when tap on sticker sent in chat Signed-off-by: yenda --- src/status_im/stickers/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/stickers/core.cljs b/src/status_im/stickers/core.cljs index 379f6ca369..b3331ae938 100644 --- a/src/status_im/stickers/core.cljs +++ b/src/status_im/stickers/core.cljs @@ -120,8 +120,8 @@ (navigation/navigate-to-cofx % :stickers-pack-modal pack))))) (fx/defn open-sticker-pack - [{{:stickers/keys [packs packs-installed] :keys [network] :as db} :db :as cofx} id] - (when (and id (string/starts-with? network "mainnet")) + [{{:stickers/keys [packs packs-installed] :networks/keys [current-network] :as db} :db :as cofx} id] + (when (and id (string/starts-with? current-network "mainnet")) (let [pack (or (get packs-installed id) (get packs id)) contract-address (contracts/get-address db :status/stickers)]