поправил рассчет кода

This commit is contained in:
Sipachev Igor 2022-03-22 14:53:32 +07:00
parent bd7f1e436e
commit c9c12a3d02

View File

@ -97,7 +97,7 @@ export class PersonalIdGenerator {
tempGender = randomGenerator.generate(1, 999) > 500 ? Gender.FEMALE : Gender.MALE
}
console.log(year, 'year', typeof year)
return Gender.MALE === tempGender ? (year > 2000 ? '3' : '5') : (year < 2000 ? '4' : '6')
return Gender.MALE === tempGender ? (year < 2000 ? '3' : '5') : (year < 2000 ? '4' : '6')
}
}