From 83f138fff4999348262845c2b8ab2a9dbbf318a8 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Tue, 22 Oct 2024 18:26:35 +0300
Subject: frontend: fix broken msg for coop submission

---
 frontend/src/api/Maps.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/src/api/Maps.tsx')

diff --git a/frontend/src/api/Maps.tsx b/frontend/src/api/Maps.tsx
index e57fc45..80f88d4 100644
--- a/frontend/src/api/Maps.tsx
+++ b/frontend/src/api/Maps.tsx
@@ -85,7 +85,7 @@ export const post_record = async (token: string, run: UploadRunContent): Promise
         "Authorization": token,
       }
     });
-    return response.data.message;
+    return [ response.data.success, response.data.message ];
   } else {
     const response = await axios.postForm(url(`maps/${run.map_id}/record`), {
       "host_demo": run.host_demo,
-- 
cgit v1.2.3

