Skip to content

Commit

Permalink
make logout function return promise that waits for logout finish (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiying-stripe authored Dec 13, 2023
1 parent ecf2e75 commit 1e7afa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const initStripeConnect = (
},
logout: () => {
return stripeConnectInstance.then(instance => {
instance.logout();
return instance.logout();
});
}
};
Expand Down

0 comments on commit 1e7afa6

Please sign in to comment.