From 9022cb6b1b1887d48a4d080f0acaca7d0f359a0f Mon Sep 17 00:00:00 2001
From: saschrad <saschrad@stud.ntnu.no>
Date: Fri, 6 May 2022 16:48:51 +0200
Subject: [PATCH] Removed account from member list

---
 src/components/UserProfileComponents/UserListItemCard.vue | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/components/UserProfileComponents/UserListItemCard.vue b/src/components/UserProfileComponents/UserListItemCard.vue
index c94d796..d4937ad 100644
--- a/src/components/UserProfileComponents/UserListItemCard.vue
+++ b/src/components/UserProfileComponents/UserListItemCard.vue
@@ -3,6 +3,7 @@
        Displays a user's profile picture, name, rating and some
        buttons based on where the list is being shown. -->
   <div
+    v-if="userID != user.userId"
     class="bg-white shadow dark:bg-gray-800 select-none cursor-pointer hover:bg-gray-50 flex items-center p-4"
   >
     <!-- User image -->
@@ -67,6 +68,7 @@ import RatingComponent from "@/components/UserProfileComponents/RatingComponents
 import IconButton from "@/components/BaseComponents/IconButton.vue";
 import UserService from "@/services/user.service";
 import CommunityAdminService from "@/services/community-admin.service";
+import { parseCurrentUser } from "@/utils/token-utils";
 
 import {
   ChatIcon,
@@ -99,6 +101,9 @@ export default {
     buttons: Array,
   },
   computed: {
+    userID() {
+      return parseCurrentUser().accountId;
+    },
     /**
      * returns the user's profile picture. If the user does not have any
      * profile picture the default profile picture is returned.
-- 
GitLab