From 4b1574d1603c01304e5505facccf0a817e5e5026 Mon Sep 17 00:00:00 2001
From: mikems66 <>
Date: Thu, 28 Jan 2021 16:35:29 +0100
Subject: fix formatting, remove validation
---
modern/src/RegisterDialog.js | 100 +++++++++++++++++++++----------------------
1 file changed, 48 insertions(+), 52 deletions(-)
(limited to 'modern/src')
diff --git a/modern/src/RegisterDialog.js b/modern/src/RegisterDialog.js
index 6dda25ec..32694ead 100644
--- a/modern/src/RegisterDialog.js
+++ b/modern/src/RegisterDialog.js
@@ -20,15 +20,9 @@ const RegisterDialog = ({ showDialog, onResult }) => {
const handleRegister = async (event) => {
let objErrors = {};
- if (formFields.name.trim() === '') {
- objErrors.name = true;
- }
if (!/(.+)@(.+)\.(.{2,})/.test(formFields.email)) {
objErrors.email = true;
}
- if (formFields.password.trim() === '') {
- objErrors.password = true;
- }
if (Object.keys(objErrors).length !== 0) {
setValidationErrors(objErrors);
return;
@@ -56,52 +50,54 @@ const RegisterDialog = ({ showDialog, onResult }) => {
message={t('loginCreated')} />
);
} else if (showDialog) {
- return ;
+ return (
+
+ )
} else return null;
};
--
cgit v1.2.3