update prices for v1
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
6ad84f4232
commit
76f9703afe
|
@ -1,11 +1,14 @@
|
||||||
(ns status-im.ui.screens.wallet.navigation
|
(ns status-im.ui.screens.wallet.navigation
|
||||||
(:require [status-im.ui.screens.navigation :as navigation]
|
(:require [status-im.ui.screens.navigation :as navigation]
|
||||||
[status-im.ui.screens.wallet.signing-phrase.views :as signing-phrase]))
|
[status-im.ui.screens.wallet.signing-phrase.views :as signing-phrase]
|
||||||
|
[re-frame.core :as re-frame]))
|
||||||
|
|
||||||
(defmethod navigation/preload-data! :wallet-stack
|
(defmethod navigation/preload-data! :wallet-stack
|
||||||
[db [event]]
|
[db [event]]
|
||||||
(let [wallet-set-up-passed? (get-in db [:multiaccount :wallet-set-up-passed?])
|
(let [wallet-set-up-passed? (get-in db [:multiaccount :wallet-set-up-passed?])
|
||||||
sign-phrase-showed? (get db :wallet/sign-phrase-showed?)]
|
sign-phrase-showed? (get db :wallet/sign-phrase-showed?)]
|
||||||
|
;;TODO temporary simple fix for v1
|
||||||
|
(re-frame/dispatch [:wallet.ui/pull-to-refresh])
|
||||||
(if (or (= event :navigate-back) wallet-set-up-passed? sign-phrase-showed?)
|
(if (or (= event :navigate-back) wallet-set-up-passed? sign-phrase-showed?)
|
||||||
db
|
db
|
||||||
(assoc db :popover/popover {:view [signing-phrase/signing-phrase]}
|
(assoc db :popover/popover {:view [signing-phrase/signing-phrase]}
|
||||||
|
|
Loading…
Reference in New Issue