From cb2e20914e5c12cc7dd9a9ca0b3d8cf603f1c51f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?H=C3=A5kon=20R=C3=B8skaft?= <haakoero@stud.ntnu.no>
Date: Fri, 6 May 2022 10:51:06 +0200
Subject: [PATCH] Fixed so rating now displayes properly

---
 src/components/UserProfileComponents/UserListItemCard.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/UserProfileComponents/UserListItemCard.vue b/src/components/UserProfileComponents/UserListItemCard.vue
index 17c002b..a39ae00 100644
--- a/src/components/UserProfileComponents/UserListItemCard.vue
+++ b/src/components/UserProfileComponents/UserListItemCard.vue
@@ -131,7 +131,7 @@ export default {
       );
     },
   },
-  async created() {
+  async beforeMount() {
     const maybeRating = await UserService.getUserRatingAverage(
       this.user.userId
     );
-- 
GitLab