diff options
author | Eric Bailey <git@esb.lol> | 2024-02-28 13:27:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 11:27:54 -0800 |
commit | d2c6edacb6464b52513dbe467c8b5713abd6a9fc (patch) | |
tree | 05c5bfb188c129b0d682d2e99597f55b53176292 /src/screens | |
parent | 0c3d55db6ff03cf38b5033c0ae9851e8cd5ea5f7 (diff) | |
download | voidsky-d2c6edacb6464b52513dbe467c8b5713abd6a9fc.tar.zst |
Protect against non functions being passed to close callback (#3019)
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/Onboarding/StepModeration/AdultContentEnabledPref.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screens/Onboarding/StepModeration/AdultContentEnabledPref.tsx b/src/screens/Onboarding/StepModeration/AdultContentEnabledPref.tsx index b38b3df1e..360025c02 100644 --- a/src/screens/Onboarding/StepModeration/AdultContentEnabledPref.tsx +++ b/src/screens/Onboarding/StepModeration/AdultContentEnabledPref.tsx @@ -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> </> |