From 45c133f4508ec3d295aff3e18ac46f19bd9b4648 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 23 Feb 2022 19:23:19 -0800 Subject: [PATCH] Change the sent param for the extra toggle --- components/Party/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Party/index.tsx b/components/Party/index.tsx index 20ccb684..5da6cb26 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -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) } }