Fix crash when deleting account from NoAccessScreen (#10283)

This commit is contained in:
DS Boyce
2026-04-17 10:48:08 -07:00
committed by GitHub
parent 9e9ff70682
commit bc9ad2c2d9
2 changed files with 26 additions and 34 deletions
+5 -5
View File
@@ -141,18 +141,18 @@ export function useLink({
})
} else {
if (isExternal) {
openLink(href, overridePresentation, shouldProxy)
void openLink(href, overridePresentation, shouldProxy)
} else {
const shouldOpenInNewTab = shouldClickOpenNewTab(e)
if (isBskyDownloadUrl(href)) {
shareUrl(BSKY_DOWNLOAD_URL)
void shareUrl(BSKY_DOWNLOAD_URL)
} else if (
shouldOpenInNewTab ||
href.startsWith('http') ||
href.startsWith('mailto')
) {
openLink(href)
void openLink(href)
} else {
closeModal() // close any active modals
@@ -232,7 +232,7 @@ export function useLink({
share: true,
})
} else {
shareUrl(href)
void shareUrl(href)
}
}, [
disableMismatchWarning,
@@ -451,7 +451,7 @@ export function SimpleInlineLinkText({
const onPress = (e: GestureResponderEvent) => {
const exitEarlyIfFalse = outerOnPress?.(e)
if (exitEarlyIfFalse === false) return
Linking.openURL(href)
void Linking.openURL(href)
}
return (