From 7dcd7d81406f4869363d2a5595d5c68f7106eb22 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 15 Nov 2022 15:16:41 +0100 Subject: Fix client lint --- client/src/app/shared/shared-main/angular/number-formatter.pipe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/shared-main/angular') diff --git a/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts b/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts index 7c18b7f67..e0cb475fc 100644 --- a/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts +++ b/client/src/app/shared/shared-main/angular/number-formatter.pipe.ts @@ -13,11 +13,11 @@ export class NumberFormatterPipe implements PipeTransform { static getDecimalForNumber (x: number, n = 1) { const v = x.toString().split('.') const f = v[1] || '' - if (f.length > n) return +f.substr(0, n) + if (f.length > n) return +f.substring(0, n) return +f } - private dictionary: Array<{max: number, type: string}> = [ + private dictionary: Array<{ max: number, type: string }> = [ { max: 1000, type: '' }, { max: 1000000, type: 'K' }, { max: 1000000000, type: 'M' } -- cgit v1.2.3