Merge pull request #2796 from vytenisstaugaitis/canary

fix(notifications): prevent blank email field on dialog reopen
This commit is contained in:
Mauricio Siu
2025-10-15 21:53:01 -06:00
committed by GitHub

View File

@@ -208,10 +208,10 @@ export const HandleNotifications = ({ notificationId }: Props) => {
}); });
useEffect(() => { useEffect(() => {
if (type === "email") { if (type === "email" && fields.length === 0) {
append(""); append("");
} }
}, [type, append]); }, [type, append, fields.length]);
useEffect(() => { useEffect(() => {
if (notification) { if (notification) {