diff options
Diffstat (limited to 'src/view/com/modals/ChangeHandle.tsx')
-rw-r--r-- | src/view/com/modals/ChangeHandle.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/view/com/modals/ChangeHandle.tsx b/src/view/com/modals/ChangeHandle.tsx index da814b3d4..03516d35a 100644 --- a/src/view/com/modals/ChangeHandle.tsx +++ b/src/view/com/modals/ChangeHandle.tsx @@ -26,19 +26,24 @@ import {useLingui} from '@lingui/react' import {useModalControls} from '#/state/modals' import {useServiceQuery} from '#/state/queries/service' import {useUpdateHandleMutation, useFetchDid} from '#/state/queries/handle' -import {useSession, useSessionApi, SessionAccount} from '#/state/session' +import { + useSession, + useSessionApi, + SessionAccount, + getAgent, +} from '#/state/session' export const snapPoints = ['100%'] export type Props = {onChanged: () => void} export function Component(props: Props) { - const {agent, currentAccount} = useSession() + const {currentAccount} = useSession() const { isLoading, data: serviceInfo, error: serviceInfoError, - } = useServiceQuery(agent.service.toString()) + } = useServiceQuery(getAgent().service.toString()) return isLoading || !currentAccount ? ( <View style={{padding: 18}}> |