поправил рассчет кода
This commit is contained in:
parent
bd7f1e436e
commit
c9c12a3d02
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user