1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

fix error layouts

This commit is contained in:
Matthew Hodgson
2017-10-25 02:18:14 +01:00
parent eb4b7c78a0
commit ae40ef4460
2 changed files with 13 additions and 4 deletions

View File

@@ -397,7 +397,9 @@ module.exports = React.createClass({
}
else {
header = <h2>{ _t('Create an account') }</h2>;
errorText = <div className="mx_Login_error">{ this.state.errorText }</div>;
if (this.state.errorText) {
errorText = <div className="mx_Login_error">{ this.state.errorText }</div>;
}
}
return (