+
{
let filterEducationLevels = data.educationLevels
if (examStore.educationLevel === 'BACHELOR') {
- filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 8)
+ filterEducationLevels = data.educationLevels.filter(
+ (level: any) => level.educationLevel === 'BACHELOR'
+ )
} else if (examStore.educationLevel === 'LOW_BACHELOR') {
filterEducationLevels = data.educationLevels.filter(
- (level: any) => level.rank >= 4 && level.rank <= 7
+ (level: any) => level.educationLevel === 'LOW_BACHELOR'
)
}
@@ -213,7 +215,7 @@ const fetchPerson = async () => {
})
data.educationLevels
- .filter((level: any) => level.rank >= 4)
+ .filter((level: any) => level.isHigh === true)
.map((r: any) => {
optionEducationLevelHigher.push({ id: r.id.toString(), name: r.name.toString() })
})