mirror of https://github.com/status-im/fathom.git
only output notification HTML if there is one
This commit is contained in:
parent
68d52a15f7
commit
c47fc3d893
|
@ -47,7 +47,7 @@ class LoginForm extends Component {
|
|||
this.setState({ email: e.target.value });
|
||||
}
|
||||
|
||||
render() {
|
||||
render(props, state) {
|
||||
return (
|
||||
<div class="block">
|
||||
<h2>Login</h2>
|
||||
|
@ -65,7 +65,7 @@ class LoginForm extends Component {
|
|||
<input type="submit" value="Sign in" />
|
||||
</div>
|
||||
</form>
|
||||
<Notification message={this.state.message} kind="" />
|
||||
{(state.message ? <Notification message={state.message} kind="" /> : '')}
|
||||
</div>
|
||||
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue