You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
Deduplicate <div> tag
This commit is contained in:
@ -252,9 +252,7 @@ export default React.createClass({
|
|||||||
for (let i = 0; i < this.state.zxcvbnResult.feedback.suggestions.length; ++i) {
|
for (let i = 0; i < this.state.zxcvbnResult.feedback.suggestions.length; ++i) {
|
||||||
suggestions.push(<div key={i}>{this.state.zxcvbnResult.feedback.suggestions[i]}</div>);
|
suggestions.push(<div key={i}>{this.state.zxcvbnResult.feedback.suggestions[i]}</div>);
|
||||||
}
|
}
|
||||||
const suggestionBlock = suggestions.length > 0 ? <div>
|
const suggestionBlock = <div>{suggestions.length > 0 ? suggestions : _t("Keep going...")}</div>;
|
||||||
{suggestions}
|
|
||||||
</div> : <div>{_t("Keep going...")}</div>;
|
|
||||||
|
|
||||||
helpText = <div>
|
helpText = <div>
|
||||||
{this.state.zxcvbnResult.feedback.warning}
|
{this.state.zxcvbnResult.feedback.warning}
|
||||||
|
Reference in New Issue
Block a user