From 1a5243915085f9fb7386c52ac7d727c60ea7817b Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 23 Feb 2022 14:28:48 -0800 Subject: [PATCH] Extra toggle should be switchable on empty grids --- components/Party/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/Party/index.tsx b/components/Party/index.tsx index 2e6e2dce..90fa0e2d 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -47,8 +47,9 @@ const Party = (props: Props) => { // Methods: Updating the party's extra flag function checkboxChanged(event: React.ChangeEvent) { + state.party.extra = event.target.checked + if (party.id) { - state.party.extra = event.target.checked api.endpoints.parties.update(party.id, { 'party': { 'is_extra': event.target.checked } }, headers)