Skip to content

Commit

Permalink
Merge pull request #190 from IFRCGo/fix/subscription-limit
Browse files Browse the repository at this point in the history
Fix/subscription limit
  • Loading branch information
roshni73 authored Dec 6, 2024
2 parents 7166d54 + a8234bf commit d3864a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/views/NewSubscriptionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ const formSchema: FormSchema = {
},
notifyByEmail: {
required: true,
defaultValue: false,
},
emailFrequency: {
required: !!value?.notifyByEmail,
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit d3864a3

Please sign in to comment.