await on open change (#1016)

https://github.com/calendso/calendso/pull/988#discussion_r732908578
This commit is contained in:
Alex Johansson 2021-10-20 17:54:52 +02:00 committed by GitHub
parent d63a180bb2
commit b8e8319b23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ export default function DisconnectIntegration(props: {
},
{
async onSettled() {
props.onOpenChange(modalOpen);
await props.onOpenChange(modalOpen);
},
onSuccess() {
setModalOpen(false);