[fix 6034] remove "thanks for..." popup on desktop

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2018-09-27 16:15:17 +02:00
parent f37276a648
commit 8638c562f9
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 4 additions and 2 deletions

View File

@ -6,12 +6,14 @@
[status-im.ui.screens.wallet.settings.models :as wallet.settings.models] [status-im.ui.screens.wallet.settings.models :as wallet.settings.models]
[status-im.utils.config :as config] [status-im.utils.config :as config]
[status-im.utils.utils :as utils] [status-im.utils.utils :as utils]
[status-im.utils.fx :as fx])) [status-im.utils.fx :as fx]
[status-im.utils.platform :as platform]))
(fx/defn show-mainnet-is-default-alert [{:keys [db]}] (fx/defn show-mainnet-is-default-alert [{:keys [db]}]
(let [enter-name-screen? (= :enter-name (get-in db [:accounts/create :step])) (let [enter-name-screen? (= :enter-name (get-in db [:accounts/create :step]))
shown? (get-in db [:account/account :mainnet-warning-shown?])] shown? (get-in db [:account/account :mainnet-warning-shown?])]
(when (and config/mainnet-warning-enabled? (when (and platform/mobile?
config/mainnet-warning-enabled?
(not shown?) (not shown?)
(not enter-name-screen?)) (not enter-name-screen?))
(utils/show-popup (utils/show-popup