diff --git a/src/components/UserProfileComponents/UserItems.vue b/src/components/UserProfileComponents/UserItems.vue index 4111d83a458622155de45c845f3f05f40b4e3287..73ae23b432b772e2718ce69230478a99c23a027f 100644 --- a/src/components/UserProfileComponents/UserItems.vue +++ b/src/components/UserProfileComponents/UserItems.vue @@ -3,7 +3,6 @@ Dine gjenstander </div> <!-- Search field --> - <!-- Search field --> <div class="relative" id="searchComponent"> <span class="absolute inset-y-0 left-0 flex items-center pl-3"> <svg class="w-5 h-5 text-gray-400" viewBox="0 0 24 24" fill="none"> diff --git a/src/components/UserProfileComponents/UserProfile.vue b/src/components/UserProfileComponents/UserProfile.vue index c5dcdb53584034bb24f3366ef686bf576726ea3f..aa280f2bd99842d2e6ddd4fcf9ad0f3d2e3fddf7 100644 --- a/src/components/UserProfileComponents/UserProfile.vue +++ b/src/components/UserProfileComponents/UserProfile.vue @@ -33,8 +33,8 @@ > <li> <router-link - @click="goToMyItems" - to="" + + to="/user/userItems" class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white" >Mine gjenstander</router-link > @@ -152,9 +152,6 @@ export default { this.$store.commit("logout"); this.$router.push("/"); }, - goToMyItems(){ - this.$router.push("/user/userItems"); - } }, beforeMount() { this.getUser();