diff options
Diffstat (limited to 'frontend/src/api/Maps.tsx')
| -rw-r--r-- | frontend/src/api/Maps.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/src/api/Maps.tsx b/frontend/src/api/Maps.tsx index b6a6bad..2209788 100644 --- a/frontend/src/api/Maps.tsx +++ b/frontend/src/api/Maps.tsx | |||
| @@ -76,11 +76,10 @@ export const delete_map_discussion = async (token: string, map_id: string, discu | |||
| 76 | }; | 76 | }; |
| 77 | 77 | ||
| 78 | export const post_record = async (token: string, run: UploadRunContent): Promise<string> => { | 78 | export const post_record = async (token: string, run: UploadRunContent): Promise<string> => { |
| 79 | if (run.partner_demo && run.partner_id) { | 79 | if (run.partner_demo) { |
| 80 | const response = await axios.postForm(url(`maps/${run.map_id}/record`), { | 80 | const response = await axios.postForm(url(`maps/${run.map_id}/record`), { |
| 81 | "host_demo": run.host_demo, | 81 | "host_demo": run.host_demo, |
| 82 | "partner_demo": run.partner_demo, | 82 | "partner_demo": run.partner_demo, |
| 83 | "partner_id": run.partner_id, | ||
| 84 | }, { | 83 | }, { |
| 85 | headers: { | 84 | headers: { |
| 86 | "Authorization": token, | 85 | "Authorization": token, |