about summary refs log tree commit diff
path: root/src/components/Dialog/index.web.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-02-28 13:27:54 -0600
committerGitHub <noreply@github.com>2024-02-28 11:27:54 -0800
commitd2c6edacb6464b52513dbe467c8b5713abd6a9fc (patch)
tree05c5bfb188c129b0d682d2e99597f55b53176292 /src/components/Dialog/index.web.tsx
parent0c3d55db6ff03cf38b5033c0ae9851e8cd5ea5f7 (diff)
downloadvoidsky-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.tsx2
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>