commit | 73a7c4a5dbe11857ea5481e1130a53072adc45b7 | [log] [tgz] |
---|---|---|
author | pineafan <pineapplefanyt@gmail.com> | Sun Jul 24 10:38:04 2022 +0100 |
committer | pineafan <pineapplefanyt@gmail.com> | Sun Jul 24 10:38:04 2022 +0100 |
tree | 0de4763b1bbaff878a9c40c569623eda7c63ea90 | |
parent | 4aecff782f3ce34ab391aae845a378188d5cb192 [diff] [blame] |
loads of bug fixes
diff --git a/src/utils/plurals.ts b/src/utils/plurals.ts index f956057..48b889c 100644 --- a/src/utils/plurals.ts +++ b/src/utils/plurals.ts
@@ -1,4 +1,5 @@ function addPlural(amount: any, unit: string) { + amount = amount.toString(); if (amount === '1') return `${amount} ${unit}` return `${amount} ${unit}s` }