diff --git a/web/components/config/notification/twitter.tsx b/web/components/config/notification/twitter.tsx index c31d99c43..4dd850305 100644 --- a/web/components/config/notification/twitter.tsx +++ b/web/components/config/notification/twitter.tsx @@ -66,14 +66,16 @@ export const ConfigNotify = () => { ); }; + useEffect(() => { + setEnableSaveButton(canSave()); + }, [formDataValues]); + // update individual values in state const handleFieldChange = ({ fieldName, value }: UpdateArgs) => { setFormDataValues({ ...formDataValues, [fieldName]: value, }); - - setEnableSaveButton(canSave()); }; // toggle switch.