Make pluralize function only return singular text when the value is 1

This commit is contained in:
Nat 2021-06-05 18:31:42 -03:00
parent 4da37de55f
commit f7bb136838
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export function withoutHTML(string) {
} }
export function pluralize(n, singular, plural) { export function pluralize(n, singular, plural) {
if (n < 2) { if (n == 1) {
return singular; return singular;
} else { } else {
return plural; return plural;