From b8e8319b23442eeb10cdb6897d0ae160d243aa0a Mon Sep 17 00:00:00 2001 From: Alex Johansson Date: Wed, 20 Oct 2021 17:54:52 +0200 Subject: [PATCH] `await` on open change (#1016) https://github.com/calendso/calendso/pull/988#discussion_r732908578 --- components/integrations/DisconnectIntegration.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/integrations/DisconnectIntegration.tsx b/components/integrations/DisconnectIntegration.tsx index f656de80..d3ce8e67 100644 --- a/components/integrations/DisconnectIntegration.tsx +++ b/components/integrations/DisconnectIntegration.tsx @@ -27,7 +27,7 @@ export default function DisconnectIntegration(props: { }, { async onSettled() { - props.onOpenChange(modalOpen); + await props.onOpenChange(modalOpen); }, onSuccess() { setModalOpen(false);