From 7a964fde29bb0518e4f491fd3d64c779c0dbbfe2 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 30 Mar 2022 14:27:54 +0200 Subject: [PATCH] [#13230] Show default syncing interval --- .../ui/screens/default_sync_period_settings/view.cljs | 4 +++- src/status_im/ui/screens/sync_settings/views.cljs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/status_im/ui/screens/default_sync_period_settings/view.cljs b/src/status_im/ui/screens/default_sync_period_settings/view.cljs index a712d43ec7..b43308d1d4 100644 --- a/src/status_im/ui/screens/default_sync_period_settings/view.cljs +++ b/src/status_im/ui/screens/default_sync_period_settings/view.cljs @@ -21,7 +21,9 @@ :on-press #(re-frame/dispatch [:multiaccounts.ui/default-sync-period-switched id])}]) (views/defview default-sync-period-settings [] - (views/letsubs [{:keys [default-sync-period]} [:multiaccount]] + (views/letsubs [{:keys [default-sync-period] + :or {default-sync-period constants/one-day}} + [:multiaccount]] [react/view {:margin-top 8} (when config/two-minutes-syncing? [radio-item constants/two-mins default-sync-period]) diff --git a/src/status_im/ui/screens/sync_settings/views.cljs b/src/status_im/ui/screens/sync_settings/views.cljs index cef003d64a..2fb0970925 100644 --- a/src/status_im/ui/screens/sync_settings/views.cljs +++ b/src/status_im/ui/screens/sync_settings/views.cljs @@ -42,7 +42,9 @@ :accessory-text (cond (= default-sync-period constants/two-mins) (i18n/label :t/two-minutes) - (= default-sync-period constants/one-day) + (or + (nil? default-sync-period) + (= default-sync-period constants/one-day)) (i18n/label :t/one-day) (= default-sync-period constants/three-days) (i18n/label :t/three-days)