fix: validate before enrolling in batch

This commit is contained in:
Jannat Patel
2025-12-03 15:44:19 +05:30
parent 6c2978306c
commit b3e90c7f2f
3 changed files with 61 additions and 18 deletions

View File

@@ -198,6 +198,7 @@ const seats_left = computed(() => {
})
const isStudent = computed(() => {
console.log(props.batch.data?.students)
return props.batch.data?.students?.includes(user.data?.name)
})