fix: validate before enrolling in batch
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user