[#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:
parent
bedb6a841b
commit
f52b87ef22
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue