From a8234bfe6421534c8b9f508a98ab7f7a7ae92028 Mon Sep 17 00:00:00 2001 From: barshathakuri Date: Fri, 6 Dec 2024 15:03:15 +0545 Subject: [PATCH] Fix subscription limit --- src/views/NewSubscriptionModal/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/NewSubscriptionModal/index.tsx b/src/views/NewSubscriptionModal/index.tsx index 4b13e7d..3e3c833 100644 --- a/src/views/NewSubscriptionModal/index.tsx +++ b/src/views/NewSubscriptionModal/index.tsx @@ -242,7 +242,6 @@ const formSchema: FormSchema = { }, notifyByEmail: { required: true, - defaultValue: false, }, emailFrequency: { required: !!value?.notifyByEmail, @@ -280,7 +279,7 @@ function NewSubscriptionModal(props: Props) { filterAlertCountry: subscription?.filterAlertCountry, filterAlertAdmin1s: subscription?.filterAlertAdmin1s ?? [], - notifyByEmail: subscription?.notifyByEmail, + notifyByEmail: subscription?.notifyByEmail ?? false, emailFrequency: subscription?.emailFrequency ?? UserAlertSubscriptionEmailFrequencyEnum.Monthly, }), [subscription]);