From 7aaf1a3d16fa6fba7a4398d4dc54a2a8bd8ab60c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?H=C3=A5kon=20R=C3=B8skaft?= <haakoero@stud.ntnu.no>
Date: Thu, 5 May 2022 09:27:56 +0200
Subject: [PATCH] Change somethings

---
 src/components/ItemComponents/ItemCard.vue | 4 ++--
 src/services/community.service.js          | 1 +
 src/views/CommunityViews/CommunityView.vue | 7 +++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/components/ItemComponents/ItemCard.vue b/src/components/ItemComponents/ItemCard.vue
index ac79861..0d81988 100644
--- a/src/components/ItemComponents/ItemCard.vue
+++ b/src/components/ItemComponents/ItemCard.vue
@@ -4,11 +4,11 @@
       class="w-4/5 rounded bg-gray-200 h-full overflow-hidden display:inline-block correct-size"
     >
       <img
-        class="w-full"
+        class="h-3/4"
         :src="item.img || require('../../assets/default-product.png')"
         alt="Item image"
       />
-      <div class="p-1 m-1">
+      <div class="p-1 m-1 bottom-0">
         <p class="text-gray-700 text-xs font-bold" id="adress">
           {{ item.address }}
         </p>
diff --git a/src/services/community.service.js b/src/services/community.service.js
index 11bc858..43b5f47 100644
--- a/src/services/community.service.js
+++ b/src/services/community.service.js
@@ -23,6 +23,7 @@ class CommunityService {
         headers: tokenHeader(),
       })
       .then((response) => {
+        console.log(response);
         return response.data;
       })
       .catch((error) => {
diff --git a/src/views/CommunityViews/CommunityView.vue b/src/views/CommunityViews/CommunityView.vue
index 52e7110..1dcff33 100644
--- a/src/views/CommunityViews/CommunityView.vue
+++ b/src/views/CommunityViews/CommunityView.vue
@@ -162,12 +162,11 @@ export default {
   async mounted() {
     await this.load();
     //Double loop not bad :)
+    console.log(this.publicCommunities);
+    console.log(this.myCommunities);
     for (var i = 0; i < this.publicCommunities.length; i++) {
       for (var j = 0; j < this.myCommunities.length; j++) {
-        if (
-          this.publicCommunities[i].communityId ===
-          this.myCommunities[j].communityId
-        ) {
+        if (this.publicCommunities[i].communityId === this.myCommunities[j].communityId) {
           this.publicCommunities.splice(i, 1);
         }
       }
-- 
GitLab