diff --git a/src/components/authcore-dialog.tsx b/src/components/authcore-dialog.tsx index 14b1567..b5d2982 100644 --- a/src/components/authcore-dialog.tsx +++ b/src/components/authcore-dialog.tsx @@ -17,7 +17,7 @@ export const AuthcoreDialog: FC = ({ const closeDialog = React.useCallback(() => { setDialogOpen(false); onClose?.(); - }, []); + }, [onClose]); useEffect(() => { onMount?.({ containerId: AUTHCORE_DIALOG_ID }); }, [onMount, onClose]);