Mirror — see github.com/blacksky-algorithms/blacksky.community
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix Change Handle dialog crash when serviceUrl is undefined

Use currentAccount.service instead of agent.serviceUrl.toString()
to get the PDS URL for describeServer. The agent's serviceUrl can
be undefined for OAuth-based sessions.

+2 -2
+2 -2
src/screens/Settings/components/ChangeHandleDialog.tsx
··· 62 62 function ChangeHandleDialogInner() { 63 63 const control = Dialog.useDialogContext() 64 64 const {_} = useLingui() 65 - const agent = useAgent() 65 + const {currentAccount} = useSession() 66 66 const { 67 67 data: serviceInfo, 68 68 error: serviceInfoError, 69 69 refetch, 70 - } = useServiceQuery(agent.serviceUrl.toString()) 70 + } = useServiceQuery(currentAccount!.service) 71 71 72 72 const [page, setPage] = useState<'provided-handle' | 'own-handle'>( 73 73 'provided-handle',