fix no-misused-promises lint errors on async press handlers

This commit is contained in:
vineyardbovines
2026-06-10 10:21:16 -04:00
parent 164584beaa
commit 7b24015cba
2 changed files with 4 additions and 4 deletions
@@ -188,8 +188,8 @@ export function InviteFriendsDialogInner({
<View style={[a.w_full, {marginTop: 48}]}>
<ActionButtons
onShare={onShare}
onDownload={onDownload}
onShare={() => void onShare()}
onDownload={() => void onDownload()}
onScan={onScan}
/>
</View>
@@ -243,7 +243,7 @@ export function InviteFriendsDialogInner({
accessibilityRole="button"
accessibilityLabel={l`Copy invite link`}
accessibilityHint={l`Copies the canonical profile URL to the clipboard`}
onPress={onCopy}
onPress={() => void onCopy()}
hitSlop={8}
style={({pressed}) => [{opacity: pressed ? 0.7 : 1}]}>
<Text
@@ -108,7 +108,7 @@ export function InviteScannerScreen() {
label={l`Grant access`}
color="primary"
size="large"
onPress={() => requestPermission()}
onPress={() => void requestPermission()}
style={{marginTop: 8}}>
<ButtonText>{l`Grant access`}</ButtonText>
</Button>