Skip to content

Commit

Permalink
fixed numbersTxt
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Dec 1, 2024
1 parent 2754f13 commit 9e40847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/utils/time.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]; // голоса
Expand Down

0 comments on commit 9e40847

Please sign in to comment.