Skip to content

Commit

Permalink
fix: redirect to login before enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
pateljannat committed Oct 11, 2024
1 parent 2d8ba3b commit 1597054
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/BatchOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ const enroll = createResource({
})
const enrollInBatch = () => {
if (!user.data) {
window.location.href = `/login?redirect-to=/batches/details/${props.batch.data.name}`
}
enroll.submit(
{},
{
Expand Down

0 comments on commit 1597054

Please sign in to comment.