refactoring

This commit is contained in:
Maren Süwer
2019-01-02 11:33:31 +01:00
parent 4244e00552
commit dce0a8996e

View File

@@ -114,8 +114,6 @@ class Login extends React.Component<Props, State> {
return this.renderRedirect();
}
const error = this.areCredentialsInvalid();
return (
<section className="hero">
<div className="hero-body">
@@ -131,7 +129,7 @@ class Login extends React.Component<Props, State> {
alt={t("login.logo-alt")}
/>
</figure>
<ErrorNotification error={error} />
<ErrorNotification error={this.areCredentialsInvalid()} />
<form onSubmit={this.handleSubmit}>
<InputField
placeholder={t("login.username-placeholder")}