From a2a0c33c81558e515dc20ed876953b9a194c2d21 Mon Sep 17 00:00:00 2001 From: Roie Natan Date: Wed, 27 Dec 2023 16:04:13 -0500 Subject: [PATCH] update default email notifications prefernce if emailNotificationPreference is absence --- .../Settings/components/SettingsForm/SettingsForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx b/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx index 9ce009e0aa..9202330726 100644 --- a/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx +++ b/src/pages/settings/components/Settings/components/SettingsForm/SettingsForm.tsx @@ -43,7 +43,8 @@ const getInitialValues = ( pushNotificationPreference: data?.pushNotificationPreference ?? UserPushNotificationPreference.All, emailNotificationPreference: - data?.emailNotificationPreference ?? UserEmailNotificationPreference.All, + data?.emailNotificationPreference ?? + UserEmailNotificationPreference.Important, }); const SettingsForm: FC = (props) => {