From f5ad360d02303ce27a65e67feb8ae38f1e26742c Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 31 Oct 2024 23:58:14 +0300 Subject: frontend: convert all native confirm and alerts to custom hooks --- frontend/src/hooks/UseConfirm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/hooks/UseConfirm.tsx') diff --git a/frontend/src/hooks/UseConfirm.tsx b/frontend/src/hooks/UseConfirm.tsx index 9a7853b..0d64224 100644 --- a/frontend/src/hooks/UseConfirm.tsx +++ b/frontend/src/hooks/UseConfirm.tsx @@ -11,7 +11,7 @@ const useConfirm = () => { setIsOpen(true); setTitle(titleN); setSubtitle(subtitleN); - return new Promise((resolve) => { + return new Promise((resolve) => { setResolvePromise(() => resolve); }); }; -- cgit v1.2.3