diff --git a/frontend/app/pages/register/student.vue b/frontend/app/pages/register/student.vue index 2ff381a..2c67b46 100644 --- a/frontend/app/pages/register/student.vue +++ b/frontend/app/pages/register/student.vue @@ -45,6 +45,7 @@ const form = ref({ year_of_study: 1, consent: false, }); +const maxYearOfStudy = ref(0); const loading = ref(false); const error = ref(null as null | string); @@ -83,6 +84,10 @@ async function handleRegistration() { loading.value = false; } } + +watch(form, (newForm) => { + maxYearOfStudy.value = newForm.studyProgram.slice(-1) === 'b' ? 3 : 2; +}, { deep: true, immediate: true });