From 8de619c5a0899f1eff2d74b003480891f740e2c0 Mon Sep 17 00:00:00 2001
From: Wolfboy248 <georgejvindkarlsen@gmail.com>
Date: Tue, 22 Oct 2024 09:34:52 +0200
Subject: refactor: hook updated

---
 frontend/src/components/UploadRunDialog.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'frontend/src/components/UploadRunDialog.tsx')

diff --git a/frontend/src/components/UploadRunDialog.tsx b/frontend/src/components/UploadRunDialog.tsx
index 6809eea..0476d6f 100644
--- a/frontend/src/components/UploadRunDialog.tsx
+++ b/frontend/src/components/UploadRunDialog.tsx
@@ -22,7 +22,7 @@ const UploadRunDialog: React.FC<UploadRunDialogProps> = ({ token, open, onClose,
   const [confirmMessage, setConfirmMessage] = React.useState<string>("Are you sure you want to upload this demo?");
 
   const { message, MessageDialogComponent } = useMessage();
-  const { confirm, ConfirmDialogComponent } = useConfirm("Upload demo?", confirmMessage);
+  const { confirm, ConfirmDialogComponent } = useConfirm();
 
 
   const navigate = useNavigate();
@@ -123,7 +123,7 @@ const UploadRunDialog: React.FC<UploadRunDialogProps> = ({ token, open, onClose,
 
       setConfirmMessage(`Map Name: ${demo.mapName}\nPortal Count: ${portalScore}\nTicks: ${timeScore}\n\nAre you sure you want to upload this demo?`)
       
-      const userConfirmed = await confirm();
+      const userConfirmed = await confirm("Upload demo?", confirmMessage);
 
       if (!userConfirmed) {
         return;
@@ -218,4 +218,4 @@ const UploadRunDialog: React.FC<UploadRunDialogProps> = ({ token, open, onClose,
 
 };
 
-export default UploadRunDialog;
\ No newline at end of file
+export default UploadRunDialog;
-- 
cgit v1.2.3

