From 4e565fb3e66a36f500a877cd12b9d75fbd5c762e Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 5 Oct 2020 11:47:46 +0300 Subject: [PATCH] Signup form: also show email specific errors. --- src/SignupPage.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SignupPage.tsx b/src/SignupPage.tsx index 8c45f3c..0282de5 100644 --- a/src/SignupPage.tsx +++ b/src/SignupPage.tsx @@ -101,6 +101,9 @@ export default function SignupPage() { if (field.field === "user.username") { errors.username = field.detail; found = true; + } else if (field.field === "user.email") { + errors.email = field.detail; + found = true; } else if (!field.field) { errors.general = field.detail; found = true;