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/components/Prompt.tsx | |
parent | 0c3d55db6ff03cf38b5033c0ae9851e8cd5ea5f7 (diff) | |
download | voidsky-d2c6edacb6464b52513dbe467c8b5713abd6a9fc.tar.zst |
Protect against non functions being passed to close callback (#3019)
Diffstat (limited to 'src/components/Prompt.tsx')
-rw-r--r-- | src/components/Prompt.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Prompt.tsx b/src/components/Prompt.tsx index 411679102..8e55bd834 100644 --- a/src/components/Prompt.tsx +++ b/src/components/Prompt.tsx @@ -89,7 +89,7 @@ export function Cancel({ color="secondary" size="small" label={_(msg`Cancel`)} - onPress={close}> + onPress={() => close()}> {children} </Button> ) |