diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 18:26:35 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 18:26:35 +0300 |
| commit | 83f138fff4999348262845c2b8ab2a9dbbf318a8 (patch) | |
| tree | 352accff72c0d817f378f8d5ecd5f6fe70c6e897 /frontend/src/api/Maps.tsx | |
| parent | backend: specify 250mb limit (diff) | |
| download | lphub-83f138fff4999348262845c2b8ab2a9dbbf318a8.tar.gz lphub-83f138fff4999348262845c2b8ab2a9dbbf318a8.tar.bz2 lphub-83f138fff4999348262845c2b8ab2a9dbbf318a8.zip | |
frontend: fix broken msg for coop submission
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/api/Maps.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 85 | "Authorization": token, | 85 | "Authorization": token, |
| 86 | } | 86 | } |
| 87 | }); | 87 | }); |
| 88 | return response.data.message; | 88 | return [ response.data.success, response.data.message ]; |
| 89 | } else { | 89 | } else { |
| 90 | const response = await axios.postForm(url(`maps/${run.map_id}/record`), { | 90 | const response = await axios.postForm(url(`maps/${run.map_id}/record`), { |
| 91 | "host_demo": run.host_demo, | 91 | "host_demo": run.host_demo, |