From 173ecc8e314c2dda4be3243f900d34b6f8198584 Mon Sep 17 00:00:00 2001 From: "Ng Wing Tat, David" Date: Fri, 26 Jan 2024 02:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20linter=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/authcore-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);