From edf261b8021b777e48f91dff8800426b9f8997d0 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 27 Dec 2022 19:21:55 -0800 Subject: [PATCH] Remove headers params from api calls --- components/Header/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Header/index.tsx b/components/Header/index.tsx index b38a9a71..0a7ae764 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -91,7 +91,7 @@ const Header = () => { function saveFavorite() { if (party.id) - api.saveTeam({ id: party.id, params: headers }).then((response) => { + api.saveTeam({ id: party.id }).then((response) => { if (response.status == 201) appState.party.favorited = true }) else console.error('Failed to save team: No party ID') @@ -99,7 +99,7 @@ const Header = () => { function unsaveFavorite() { if (party.id) - api.unsaveTeam({ id: party.id, params: headers }).then((response) => { + api.unsaveTeam({ id: party.id }).then((response) => { if (response.status == 200) appState.party.favorited = false }) else console.error('Failed to unsave team: No party ID')