Fixed stripe disconnect not working with new settings

refs #10318
This commit is contained in:
Fabien O'Carroll 2020-06-30 18:27:13 +02:00
parent 0a2530c1cc
commit 1cf0dc14b9

View File

@ -227,7 +227,7 @@ export default Component.extend({
openDisconnectStripeConnectModal: task(function* () {
this.set('hasActiveStripeSubscriptions', false);
if (!this.get('stripeConnectIntegration')) {
if (!this.get('stripeConnectAccountId')) {
return;
}
const url = this.get('ghostPaths.url').api('/members/hasActiveStripeSubscriptions');