fix: full page load to lms if error joining course

This commit is contained in:
Rotimi Best
2024-07-31 11:14:00 +01:00
parent b7dae0510f
commit 1755c06bf1
@@ -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;
}