mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-24 03:47:53 +00:00
fix retrieving settings from localstorage
This commit is contained in:
parent
7f6834f0f1
commit
91f787c18a
@ -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] =
|
||||
|
@ -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])
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user