[#7771] Fix beta warning

This commit is contained in:
Roman Volosovskyi 2019-03-20 15:37:04 +02:00
parent f25cf1a0f9
commit 403f327c34
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 2 additions and 4 deletions

View File

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