From 9e4084760efd17ed404ed8fcf4697ea06c655b22 Mon Sep 17 00:00:00 2001 From: Andcool-Systems Date: Sun, 1 Dec 2024 20:35:08 +0300 Subject: [PATCH] fixed numbersTxt --- src/app/modules/utils/time.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/utils/time.module.ts b/src/app/modules/utils/time.module.ts index cb8eeb0..98a200d 100644 --- a/src/app/modules/utils/time.module.ts +++ b/src/app/modules/utils/time.module.ts @@ -4,7 +4,7 @@ export const numbersTxt = (num: number, variations: [string, string, string]): s const first = Math.floor(num / 10) % 10; let text: string; - if (past === 1 && num !== 11) { + if (past === 1 && !num.toString().endsWith('11')) { text = variations[0]; // голос } else if (past >= 2 && past <= 4 && first !== 1) { text = variations[1]; // голоса