diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 341b4201..cf8a4404 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -5080,10 +5080,8 @@ export class ProfileController extends Controller { citizenIdDigits[11] * 2; const calStp2 = cal % 11; let chkDigit = 11 - calStp2; - if (chkDigit === 10) { - chkDigit = 1; - } else if (chkDigit === 11) { - chkDigit = chkDigit % 10; + if (chkDigit >= 10) { + chkDigit = 0; } if (citizenIdDigits[12] !== chkDigit) {