Protect against non functions being passed to close callback (#3019)
This commit is contained in:
@@ -114,7 +114,7 @@ export function AdultContentEnabledPref({
|
||||
</Trans>
|
||||
</Prompt.Description>
|
||||
<Prompt.Actions>
|
||||
<Prompt.Action onPress={prompt.close}>OK</Prompt.Action>
|
||||
<Prompt.Action onPress={() => prompt.close()}>OK</Prompt.Action>
|
||||
</Prompt.Actions>
|
||||
</Prompt.Outer>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user