From f7bb1368381a11228901bbf60d8772063cc0d145 Mon Sep 17 00:00:00 2001 From: natjms Date: Sat, 5 Jun 2021 18:31:42 -0300 Subject: [PATCH] Make pluralize function only return singular text when the value is 1 --- src/interface/rendering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/rendering.js b/src/interface/rendering.js index ceb5a3a..37a40c9 100644 --- a/src/interface/rendering.js +++ b/src/interface/rendering.js @@ -15,7 +15,7 @@ export function withoutHTML(string) { } export function pluralize(n, singular, plural) { - if (n < 2) { + if (n == 1) { return singular; } else { return plural;