From 4189ca8318dba44071a980b4600e2b6cf90e3fc0 Mon Sep 17 00:00:00 2001
From: Cliff Li <lic@student.ethz.ch>
Date: Sat, 10 Feb 2018 19:01:30 +0100
Subject: [PATCH] Remove superfluous bracket in login.js

---
 src/views/login.js | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/views/login.js b/src/views/login.js
index f83012ae..c4f2a1d5 100644
--- a/src/views/login.js
+++ b/src/views/login.js
@@ -17,18 +17,17 @@ module.exports = {
               .catch((err) => { this.error = err.message; });
           },
         },
-        m('h3', 'Login'), [
-          m('p', this.error),
-          m('input.input[type=text][placeholder=Username]', {
-            oninput: m.withAttr('value', (value) => { this.username = value; }),
-            value: this.username,
-          }),
-          m('input.input[placeholder=Password][type=password]', {
-            oninput: m.withAttr('value', (value) => { this.password = value; }),
-            value: this.password,
-          }),
-          m('button.button[type=submit]', 'Login'),
-        ],
+        m('h3', 'Login'),
+        m('p', this.error),
+        m('input.input[type=text][placeholder=Username]', {
+          oninput: m.withAttr('value', (value) => { this.username = value; }),
+          value: this.username,
+        }),
+        m('input.input[placeholder=Password][type=password]', {
+          oninput: m.withAttr('value', (value) => { this.password = value; }),
+          value: this.password,
+        }),
+        m('button.button[type=submit]', 'Login'),
       ),
     ]);
   },
-- 
GitLab