Change the sent param for the extra toggle

This commit is contained in:
Justin Edmund 2022-02-23 19:23:19 -08:00
parent 094d2e83d6
commit 45c133f450

View file

@ -38,7 +38,7 @@ const Party = (props: Props) => {
let body = {
party: {
...(cookies.user) && { user_id: cookies.user.user_id },
is_extra: extra
extra: extra
}
}
@ -51,7 +51,7 @@ const Party = (props: Props) => {
if (party.id) {
api.endpoints.parties.update(party.id, {
'party': { 'is_extra': event.target.checked }
'party': { 'extra': event.target.checked }
}, headers)
}
}