diff --git a/src/App.tsx b/src/App.tsx index 221b8cb..3520489 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -428,7 +428,7 @@ function App() { const [creationStep, setCreationStep] = useState(1) const {getIndividualUserInfo} = useHandleUserInfo() const qortalRequestCheckbox1Ref = useRef(null); - useRetrieveDataLocalStorage(); + useRetrieveDataLocalStorage(userInfo?.address); useQortalGetSaveSettings(userInfo?.name, extState === "authenticated"); const [fullScreen, setFullScreen] = useRecoilState(fullScreenAtom); const [isEnabledDevMode, setIsEnabledDevMode] = diff --git a/src/useRetrieveDataLocalStorage.tsx b/src/useRetrieveDataLocalStorage.tsx index 2a248bd..fafcd5c 100644 --- a/src/useRetrieveDataLocalStorage.tsx +++ b/src/useRetrieveDataLocalStorage.tsx @@ -15,7 +15,7 @@ function fetchFromLocalStorage(key) { } } -export const useRetrieveDataLocalStorage = () => { +export const useRetrieveDataLocalStorage = (address) => { const setSortablePinnedApps = useSetRecoilState(sortablePinnedAppsAtom); const setSettingsLocalLastUpdated = useSetRecoilState(settingsLocalLastUpdatedAtom); const setIsUsingImportExportSettings = useSetRecoilState(isUsingImportExportSettingsAtom) @@ -50,6 +50,6 @@ export const useRetrieveDataLocalStorage = () => { getSortablePinnedApps() getSortablePinnedAppsImportExport() - }, [getSortablePinnedApps]) + }, [getSortablePinnedApps, address]) }