fix: email notification preferences (#4656)

This commit is contained in:
Anmol Singh Bhatia 2024-05-31 12:18:57 +05:30 committed by GitHub
parent 4d9cd0c318
commit 3cbc1dcf10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,9 +99,9 @@ export const EmailNotificationForm: FC<IEmailNotificationFormProps> = (props) =>
render={({ field: { value, onChange } }) => ( render={({ field: { value, onChange } }) => (
<Checkbox <Checkbox
checked={value} checked={value}
intermediate={!value && watch("issue_completed")} indeterminate={!value && watch("issue_completed")}
onChange={() => { onChange={() => {
setValue("issue_completed", !value); setValue("issue_completed", !value, { shouldDirty: true });
onChange(!value); onChange(!value);
}} }}
className="mx-2" className="mx-2"