From 7f6a1e07e23a2cd142253e79e512aba0b80e1082 Mon Sep 17 00:00:00 2001 From: Xmader Date: Thu, 19 Nov 2020 13:22:17 -0500 Subject: [PATCH] refactor: idLastDigit --- src/scoreinfo.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scoreinfo.ts b/src/scoreinfo.ts index b9988f0..592d23c 100644 --- a/src/scoreinfo.ts +++ b/src/scoreinfo.ts @@ -34,8 +34,7 @@ export const scoreinfo = { }, get idLastDigit (this: typeof scoreinfo): number { - const idStr = (+this.id).toString(RADIX) - return parseInt(idStr[idStr.length - 1], RADIX) + return (+this.id) % RADIX }, get title (this: typeof scoreinfo): string {