From b1d36db248132181f0b85cd974143cc50b612718 Mon Sep 17 00:00:00 2001 From: Alejandro Guzman Date: Thu, 14 Dec 2023 22:33:12 +0100 Subject: [PATCH] Minor changes --- src/components/UserFeed.jsx | 6 ++++-- src/components/UserProfile.jsx | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/UserFeed.jsx b/src/components/UserFeed.jsx index fc3722e..608bd73 100644 --- a/src/components/UserFeed.jsx +++ b/src/components/UserFeed.jsx @@ -146,7 +146,9 @@ function UserFeed() { setPage(0); setFeedType(tab); setFinished(false); - setRecipes([]); + if(isLogged()){ + setRecipes([]); + } localStorage.setItem('feedType', tab); if (!isLogged() && tab === "following") { setShowLoginRedirectModal(true); @@ -232,7 +234,7 @@ function UserFeed() { Required log in You need to log in to view the recipes of the people you follow. - + diff --git a/src/components/UserProfile.jsx b/src/components/UserProfile.jsx index 0644aac..cb136cd 100644 --- a/src/components/UserProfile.jsx +++ b/src/components/UserProfile.jsx @@ -769,7 +769,7 @@ const UserProfile = () => { - + @@ -784,7 +784,7 @@ const UserProfile = () => { Profile Update {confirmationMessage} - + @@ -833,7 +833,7 @@ const UserProfile = () => { - + @@ -852,7 +852,7 @@ const UserProfile = () => { {operationSuccess ? 'Success' : 'Error'} {confirmationMessage} - + @@ -989,7 +989,7 @@ const UserProfile = () => { Unfollow User Do you want to unfollow this user? - + @@ -1004,7 +1004,7 @@ const UserProfile = () => { Required log in You need to log in to follow this user. - +