Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit fb74a2c

Browse files
VasusenajasonLaster
authored andcommitted
Changed error to 'No results found' (#5051)
* Changed error to 'No results found' * Group conditional and use localized text
1 parent 1be5d8c commit fb74a2c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/ProjectSearch/TextSearch.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,10 @@ export default class TextSearch extends Component<Props> {
184184
renderItem={renderItem}
185185
/>
186186
);
187-
} else if (status === statusType.fetching) {
188-
return <div className="no-result-msg absolute-center">Loading...</div>;
189-
} else if (this.props.query && !results.length) {
187+
} else if (
188+
(this.props.query && !results.length) ||
189+
status === statusType.fetching
190+
) {
190191
return (
191192
<div className="no-result-msg absolute-center">
192193
{L10N.getStr("projectTextSearch.noResults")}

0 commit comments

Comments
 (0)