From 715a24969cbc8b8b630580d33bbd6bd83d0a93b4 Mon Sep 17 00:00:00 2001 From: Andrey Mikhadyuk Date: Tue, 17 Oct 2023 16:06:09 +0300 Subject: [PATCH] update initial values of settings form --- .../Settings/components/SettingsForm/SettingsForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx b/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx index 9161f3da8a..9ce009e0aa 100644 --- a/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx +++ b/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx @@ -41,9 +41,9 @@ const getInitialValues = ( > | null, ): FormValues => ({ pushNotificationPreference: - data?.pushNotificationPreference ?? UserPushNotificationPreference.None, + data?.pushNotificationPreference ?? UserPushNotificationPreference.All, emailNotificationPreference: - data?.emailNotificationPreference ?? UserEmailNotificationPreference.None, + data?.emailNotificationPreference ?? UserEmailNotificationPreference.All, }); const SettingsForm: FC = (props) => {