From bd68865690b73148116b5db137f922824be97e91 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Wed, 26 Nov 2025 16:11:32 +0700 Subject: [PATCH] fix condition education rank --- src/modules/01_exam/components/Form/Profile.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/01_exam/components/Form/Profile.vue b/src/modules/01_exam/components/Form/Profile.vue index 3ea239e..c8e4b8b 100644 --- a/src/modules/01_exam/components/Form/Profile.vue +++ b/src/modules/01_exam/components/Form/Profile.vue @@ -201,10 +201,10 @@ const fetchPerson = async () => { let filterEducationLevels = data.educationLevels if (examStore.educationLevel === 'BACHELOR') { - filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 7) + filterEducationLevels = data.educationLevels.filter((level: any) => level.rank === 8) } else if (examStore.educationLevel === 'LOW_BACHELOR') { filterEducationLevels = data.educationLevels.filter( - (level: any) => level.rank >= 4 && level.rank <= 6 + (level: any) => level.rank >= 4 && level.rank <= 7 ) } @@ -213,7 +213,7 @@ const fetchPerson = async () => { }) data.educationLevels - .filter((level: any) => level.rank >= 4 && level.rank !== 6 && level.rank !== 8) + .filter((level: any) => level.rank >= 4) .map((r: any) => { optionEducationLevelHigher.push({ id: r.id.toString(), name: r.name.toString() }) })