Remove headers params from api calls
This commit is contained in:
parent
47f6a5c1bd
commit
edf261b802
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue