From 06db1c9a73ab014e4d4a97495b2e8907d9d6af50 Mon Sep 17 00:00:00 2001 From: EwoutV Date: Wed, 3 Apr 2024 23:07:12 +0200 Subject: [PATCH] fix: refresh user after enrollment --- .../src/components/courses/students/StudentCourseJoinButton.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/courses/students/StudentCourseJoinButton.vue b/frontend/src/components/courses/students/StudentCourseJoinButton.vue index bfdfc13a..b8b3622b 100644 --- a/frontend/src/components/courses/students/StudentCourseJoinButton.vue +++ b/frontend/src/components/courses/students/StudentCourseJoinButton.vue @@ -29,6 +29,8 @@ async function joinCourse(): Promise { props.course.name, ]), ); + + await refreshUser(); } catch (error) { addErrorMessage( t('toasts.messages.error'),