diff --git a/src/App.tsx b/src/App.tsx index 8ee05ce..82c9992 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -106,9 +106,10 @@ const Results = (props: ResultsProps) => { const renderedName = renderConlang(conlang); const searchType = (props.direction === SearchDirection.ToConlang) ? `English -> ${renderedName}` : `${renderedName} -> English`; + const result = num === 1 ? 'result' : 'results'; const header = (
- Searched for { props.searchTerm }, { searchType }, found { num } result(s) + Searched for { props.searchTerm }, { searchType }, found { num } { result }
); const entries = props.searchResults.map( (entry, _idx) => ,