Skip to content

Commit c0965d0

Browse files
committed
fix unintended onClose() behavior for modal manager
1 parent 5ca92c6 commit c0965d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/modals/GlobalModalManager.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function GlobalModalManager() {
3030
}}
3131
key={state.key}
3232
isClosing={isClosing}
33-
onClose={() => activeModal && hideModal(activeModal.key)}
33+
onClose={() => hideModal(state.key)}
3434
{...props}
3535
/>
3636
);

0 commit comments

Comments
 (0)