From 6c77c3522dd2c3ad5b2b9198df50323da8381b90 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Tue, 22 Oct 2024 13:28:24 +0300
Subject: frontend: fix message async hook

---
 frontend/src/hooks/UseMessage.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'frontend/src/hooks/UseMessage.tsx')

diff --git a/frontend/src/hooks/UseMessage.tsx b/frontend/src/hooks/UseMessage.tsx
index 0d2799c..6b458eb 100644
--- a/frontend/src/hooks/UseMessage.tsx
+++ b/frontend/src/hooks/UseMessage.tsx
@@ -19,6 +19,7 @@ const useMessage = () => {
     const handleClose = () => {
         setIsOpen(false);
         if (resolvePromise) {
+            resolvePromise();
             setResolvePromise(null);
         }
     };
-- 
cgit v1.2.3

