feat(account-settings): add email alerting preferences#2229
feat(account-settings): add email alerting preferences#2229subinasr wants to merge 3 commits intoproject/email-alertsfrom
Conversation
|
a3a4031 to
1ff0ad5
Compare
b921ef0 to
64c93e4
Compare
9dd1c1f to
9839edf
Compare
07368c4 to
82a14c7
Compare
| updateSubscription({ | ||
| ...formValues, | ||
| // NOTE: @frozenhelium Will undefined be set to null by default? | ||
| alert_per_day: isNotDefined(formValues.alert_per_day) |
There was a problem hiding this comment.
We can use defaultValue: nullValue in the form schema
| createSubscription({ | ||
| ...formValues, | ||
| // NOTE: @frozenhelium Will undefined be set to null by default? | ||
| alert_per_day: isNotDefined(formValues.alert_per_day) |
There was a problem hiding this comment.
We can use defaultValue: nullValue in the form schema
| }), | ||
| ); | ||
| }, | ||
| // TODO: handle failure |
There was a problem hiding this comment.
Let's make the schema conditional so that at least one of the country or region is required. Let's do the necessary adjustment in the server side as well!
82a14c7 to
74b7254
Compare
Summary
Add email preferences in account settings.
Addresses
Add a section in notification preferences for montandon alerts
Depends On
IFRCGo/go-api#2648
Changes
This PR Ensures:
console.logstatements meant for debugging