From cd29dba761dde1e5050675cbc3002b317c5648b4 Mon Sep 17 00:00:00 2001
From: Hailey <me@haileyok.com>
Date: Fri, 5 Apr 2024 12:52:53 -0700
Subject: fix dialog back button for android (#3428)

* fix types

* remove unused async

* add try/catch
---
 src/components/Prompt.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/components/Prompt.tsx')

diff --git a/src/components/Prompt.tsx b/src/components/Prompt.tsx
index 3344b051b..c92fe2652 100644
--- a/src/components/Prompt.tsx
+++ b/src/components/Prompt.tsx
@@ -135,8 +135,7 @@ export function Action({
   const {gtMobile} = useBreakpoints()
   const {close} = Dialog.useDialogContext()
   const handleOnPress = React.useCallback(() => {
-    close()
-    onPress()
+    close(onPress)
   }, [close, onPress])
 
   return (
-- 
cgit 1.4.1

