diff --git a/packages/features/calendars/CalendarSwitch.tsx b/packages/features/calendars/CalendarSwitch.tsx index 06dcd889ed97a3..996e0fcec91298 100644 --- a/packages/features/calendars/CalendarSwitch.tsx +++ b/packages/features/calendars/CalendarSwitch.tsx @@ -67,7 +67,7 @@ const CalendarSwitch = (props: ICalendarSwitchProps) => { }, onError() { setCheckedInternal(false); - showToast(`Something went wrong when toggling "${title}""`, "error"); + showToast(`Something went wrong when toggling "${title}"`, "error"); }, } ); @@ -77,9 +77,10 @@ const CalendarSwitch = (props: ICalendarSwitchProps) => { { + disabled={mutation.isLoading} + onCheckedChange={async (isOn: boolean) => { setCheckedInternal(isOn); - mutation.mutate({ isOn }); + await mutation.mutate({ isOn }); }} />