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/Dialog/index.web.tsx | |
parent | 0c3d55db6ff03cf38b5033c0ae9851e8cd5ea5f7 (diff) | |
download | voidsky-d2c6edacb6464b52513dbe467c8b5713abd6a9fc.tar.zst |
Protect against non functions being passed to close callback (#3019)
Diffstat (limited to 'src/components/Dialog/index.web.tsx')
-rw-r--r-- | src/components/Dialog/index.web.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Dialog/index.web.tsx b/src/components/Dialog/index.web.tsx index fa29fbd6c..ff05fed91 100644 --- a/src/components/Dialog/index.web.tsx +++ b/src/components/Dialog/index.web.tsx @@ -190,7 +190,7 @@ export function Close() { variant="ghost" color="secondary" shape="round" - onPress={close} + onPress={() => close()} label={_(msg`Close active dialog`)}> <ButtonIcon icon={X} size="md" /> </Button> |