From 9c0e643b238169c35ba7f1f3422c939dc627b07f Mon Sep 17 00:00:00 2001 From: Nuwan Date: Sat, 22 Feb 2025 01:47:26 +0530 Subject: [PATCH] prevent user avatar refresh prevent referesing the user avatar on every page navigation --- jam-ui/src/context/AppDataContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jam-ui/src/context/AppDataContext.js b/jam-ui/src/context/AppDataContext.js index 0de01ceed..89d08b248 100644 --- a/jam-ui/src/context/AppDataContext.js +++ b/jam-ui/src/context/AppDataContext.js @@ -10,7 +10,7 @@ const AppDataContext = React.createContext(null); export const AppDataProvider = ({ children }) => { const [appData, setAppData] = React.useState({}); const { currentUser } = useAuth(); - const { userProfile, photoUrl } = useUserProfile({ user: currentUser, useCache: false }); + const { userProfile, photoUrl } = useUserProfile({ user: currentUser, useCache: true }); React.useEffect(() => { const fpPromise = FingerprintJS.load();