diff --git a/src/components/ItemComponents/ItemCard.vue b/src/components/ItemComponents/ItemCard.vue index ac79861f7bf9eb7bbed3592b4420d440bc98e587..0d81988d6ae5dca8c620b69c0eadeb7a6fb7cc7f 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 11bc85817db76d285c028434a7e8df2f64cc5f46..43b5f47c60704e5675553bee137686c183808d07 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 52e711014b45736bf30d0a21122e03eb24262b55..1dcff33712b43d5b14cf3e557ad53176a06eeb39 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); } }