From d313e4858c6f7154efb8fdd1402651d27f67eae8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 9 Aug 2022 10:16:22 +0100 Subject: [PATCH] Set errors to null rather than deleting when validating user email addresses --- .../builder/portal/manage/users/_components/AddUserModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte index 165d94e0b5..ced45db687 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte @@ -48,7 +48,7 @@ if (email) { const res = emailValidator(email) if (res === true) { - delete userData[index].error + userData[index].error = null } else { userData[index].error = res }