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

master
Sipachev Igor 3 years ago
parent bd7f1e436e
commit c9c12a3d02
  1. 2
      popup/src/classes/Service/Generators/PersonalIdGenerator.ts

@ -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…
Cancel
Save