[#9542] Make "Sync over mobile network" modal even less annoying

This commit is contained in:
Andrey Shovkoplyas 2019-11-29 11:01:51 +01:00
parent 6facfe3938
commit 935029aef0
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@
(fx/defn sheet-defaults
[{:keys [db]}]
(let [remember-choice? (get-in db [:multiaccount :remember-syncing-choice?])]
{:db (assoc db :mobile-network/remember-choice? remember-choice?)}))
{:db (assoc db :mobile-network/remember-choice? (or (nil? remember-choice?)
remember-choice?))}))
(fx/defn on-network-status-change
[{:keys [db] :as cofx}]