diff --git a/src/App.tsx b/src/App.tsx index df12157..06864eb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -391,7 +391,7 @@ function App() { const [rootHeight, setRootHeight] = useState("100%"); const [isSettingsOpen, setIsSettingsOpen] = useState(false); const qortalRequestCheckbox1Ref = useRef(null); - useRetrieveDataLocalStorage() + useRetrieveDataLocalStorage(userInfo?.address) useQortalGetSaveSettings(userInfo?.name, extState === "authenticated") const [fullScreen, setFullScreen] = useRecoilState(fullScreenAtom); const resetAtomIsUsingImportExportSettingsAtom = useResetRecoilState(isUsingImportExportSettingsAtom) diff --git a/src/useRetrieveDataLocalStorage.tsx b/src/useRetrieveDataLocalStorage.tsx index 9ffe5af..3174a81 100644 --- a/src/useRetrieveDataLocalStorage.tsx +++ b/src/useRetrieveDataLocalStorage.tsx @@ -16,7 +16,7 @@ function fetchFromLocalStorage(key) { } } -export const useRetrieveDataLocalStorage = () => { +export const useRetrieveDataLocalStorage = (address) => { const setSortablePinnedApps = useSetRecoilState(sortablePinnedAppsAtom); const setSettingsLocalLastUpdated = useSetRecoilState(settingsLocalLastUpdatedAtom); const setIsUsingImportExportSettings = useSetRecoilState(isUsingImportExportSettingsAtom) @@ -51,6 +51,6 @@ export const useRetrieveDataLocalStorage = () => { getSortablePinnedApps() getSortablePinnedAppsImportExport() - }, [getSortablePinnedApps]) + }, [getSortablePinnedApps, address]) }