mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 10:46:21 +00:00
[#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)))))
|
(navigation/navigate-to-cofx % :stickers-pack-modal pack)))))
|
||||||
|
|
||||||
(fx/defn open-sticker-pack
|
(fx/defn open-sticker-pack
|
||||||
[{{:stickers/keys [packs packs-installed] :keys [network] :as db} :db :as cofx} id]
|
[{{:stickers/keys [packs packs-installed] :networks/keys [current-network] :as db} :db :as cofx} id]
|
||||||
(when (and id (string/starts-with? network "mainnet"))
|
(when (and id (string/starts-with? current-network "mainnet"))
|
||||||
(let [pack (or (get packs-installed id)
|
(let [pack (or (get packs-installed id)
|
||||||
(get packs id))
|
(get packs id))
|
||||||
contract-address (contracts/get-address db :status/stickers)]
|
contract-address (contracts/get-address db :status/stickers)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user