From c47fc3d8936460c1a8fa804577f3cae10f29d1f0 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Wed, 2 May 2018 17:10:59 +0200 Subject: [PATCH] only output notification HTML if there is one --- assets/js/components/LoginForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/LoginForm.js b/assets/js/components/LoginForm.js index f322489..8c6ee3a 100644 --- a/assets/js/components/LoginForm.js +++ b/assets/js/components/LoginForm.js @@ -47,7 +47,7 @@ class LoginForm extends Component { this.setState({ email: e.target.value }); } - render() { + render(props, state) { return (

Login

@@ -65,7 +65,7 @@ class LoginForm extends Component {
- + {(state.message ? : '')} )