refactor: idLastDigit

This commit is contained in:
Xmader 2020-11-19 13:22:17 -05:00
parent f68a2ddada
commit 7f6a1e07e2
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 1 additions and 2 deletions

View File

@ -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 {