From 9000317acd2aa8d263e06544d1cfb34c1af75d1d Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 21 May 2021 13:26:55 +0530 Subject: [PATCH] Fixed incorrect stripe disconnect UI on memberships setting no refs When disconnecting Stripe via the stripe connect modal, we were not resetting the `stripeConnectIntegrationToken` which is used by backend to calculate properties of `stripe_connect_*` settings. This resulted in `stripe_connect_*` properties being retained in settings even after Stripe is disconnected as we keep passing the old integration token to settings API which overrides all connect settings. This change resets the stripe integration token to empty again so as its not using the old value even after modal is closed or disconnected. --- ghost/admin/app/components/modal-stripe-connect.hbs | 2 +- ghost/admin/app/components/modal-stripe-connect.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ghost/admin/app/components/modal-stripe-connect.hbs b/ghost/admin/app/components/modal-stripe-connect.hbs index 3ad2b2cce3..b00d6761a7 100644 --- a/ghost/admin/app/components/modal-stripe-connect.hbs +++ b/ghost/admin/app/components/modal-stripe-connect.hbs @@ -1,4 +1,4 @@ -