[#8945] "null is not an object" error when tap on sticker sent in chat

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
Andrey Shovkoplyas 2019-09-30 12:28:33 +02:00 committed by yenda
parent bedb6a841b
commit f52b87ef22
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 2 additions and 2 deletions

View File

@ -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)]