From 3f33cf8dcb53d20e67d8abc9214c7192a28dca94 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Tue, 16 Apr 2019 16:04:23 -0700
Subject: Before big moderation merge

---
 ui/src/components/login.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'ui/src/components/login.tsx')

diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx
index 2d2339f5..e871acef 100644
--- a/ui/src/components/login.tsx
+++ b/ui/src/components/login.tsx
@@ -20,7 +20,8 @@ let emptyState: State = {
   registerForm: {
     username: undefined,
     password: undefined,
-    password_verify: undefined
+    password_verify: undefined,
+    admin: false,
   },
   loginLoading: false,
   registerLoading: false
@@ -147,6 +148,7 @@ export class Login extends Component<any, State> {
   }
 
   handleRegisterSubmit(i: Login, event: any) {
+    event.preventDefault();
     i.state.registerLoading = true;
     i.setState(i.state);
     event.preventDefault();
-- 
cgit v1.2.3

