From 1755c06bf17e77f5ed732798750046a492020caa Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Wed, 31 Jul 2024 11:14:00 +0100 Subject: [PATCH] fix: full page load to lms if error joining course --- apps/dashboard/src/routes/invite/s/[hash]/+page.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dashboard/src/routes/invite/s/[hash]/+page.svelte b/apps/dashboard/src/routes/invite/s/[hash]/+page.svelte index 6a206691..42697a77 100644 --- a/apps/dashboard/src/routes/invite/s/[hash]/+page.svelte +++ b/apps/dashboard/src/routes/invite/s/[hash]/+page.svelte @@ -76,6 +76,9 @@ if (addedMember.error) { console.error('Error adding student to group', courseData.group_id, addedMember.error); snackbar.error('snackbar.invite.failed_join'); + + // Full page load to lms if error joining, probably user already joined + window.location.href = '/lms'; return; }