diff options
author | Eric Bailey <git@esb.lol> | 2023-11-10 08:46:45 -0600 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2023-11-10 08:46:45 -0600 |
commit | b0c9cce5c3ea9246fbc2f71ac64c10c5252ec9a4 (patch) | |
tree | 510b14357ceff341a79c8947b9ea9b7e1fe4464d /src/view/screens/Settings.tsx | |
parent | 742f53d1ecfc5060b7e6fc0cea0f8729d2e9b1b5 (diff) | |
download | voidsky-b0c9cce5c3ea9246fbc2f71ac64c10c5252ec9a4.tar.zst |
Follow conventions for query, use isDirty flag in session store to avoid unneccessary writes
Diffstat (limited to 'src/view/screens/Settings.tsx')
-rw-r--r-- | src/view/screens/Settings.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx index 4fd2f2d53..cff92f8fd 100644 --- a/src/view/screens/Settings.tsx +++ b/src/view/screens/Settings.tsx @@ -58,7 +58,7 @@ import { useSetRequireAltTextEnabled, } from '#/state/preferences' import {useSession, useSessionApi, SessionAccount} from '#/state/session' -import {useGetProfile} from '#/data/useGetProfile' +import {useProfileQuery} from '#/state/queries/profile' // TEMPORARY (APP-700) // remove after backend testing finishes @@ -72,7 +72,7 @@ function SettingsAccountCard({account}: {account: SessionAccount}) { const pal = usePalette('default') const {isSwitchingAccounts, currentAccount} = useSession() const {logout} = useSessionApi() - const {isError, data} = useGetProfile({did: account.did}) + const {isError, data} = useProfileQuery({did: account.did}) const isCurrentAccount = account.did === currentAccount?.did const {onPressSwitchAccount} = useAccountSwitcher() |