fix(notifications): prevent blank email field on dialog reopen

This commit is contained in:
vytenisstaugaitis
2025-10-09 11:27:07 +03:00
parent a0b550ace9
commit 0c37d7b3ee
@@ -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) {