From 731d94b973d6b71a10dd68c903ed65acef764cac Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 8 Apr 2024 09:09:40 -0700 Subject: [PATCH] Implement back button fix for all places in the app (#3434) --- src/components/Dialog/context.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Dialog/context.ts b/src/components/Dialog/context.ts index 859f8edd..df8bbb08 100644 --- a/src/components/Dialog/context.ts +++ b/src/components/Dialog/context.ts @@ -39,7 +39,8 @@ export function useDialogControl(): DialogOuterProps['control'] { control.current.open() }, close: cb => { - control.current.close(cb) + control.current.close() + cb?.() }, }), [id, control],