From 3ece5e0ba265f4a7773da71cd4b21c5c0b2b4f8a Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 21 Oct 2021 14:16:18 -0700 Subject: [PATCH] Disable stripe promise. --- .../pages/manage/manage.page.component.jsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/client/src/pages/manage/manage.page.component.jsx b/client/src/pages/manage/manage.page.component.jsx index c0cb38568..2014a1256 100644 --- a/client/src/pages/manage/manage.page.component.jsx +++ b/client/src/pages/manage/manage.page.component.jsx @@ -166,16 +166,18 @@ const Dms = lazy(() => import("../dms/dms.container")); const { Content, Footer } = Layout; const stripePromise = new Promise((resolve, reject) => { - client.query({ query: QUERY_STRIPE_ID }).then((resp) => { - if (resp.data.bodyshops[0]) - resolve( - loadStripe(process.env.REACT_APP_STRIPE_PUBLIC_KEY, { - stripeAccount: - resp.data.bodyshops[0].stripe_acct_id || "No Stripe Id Resolve", - }) - ); - reject(); - }); + resolve(null); + // reject(); + // client.query({ query: QUERY_STRIPE_ID }).then((resp) => { + // if (resp.data.bodyshops[0]) + // resolve( + // loadStripe(process.env.REACT_APP_STRIPE_PUBLIC_KEY, { + // stripeAccount: + // resp.data.bodyshops[0].stripe_acct_id || "No Stripe Id Resolve", + // }) + // ); + // reject(); + // }); }); const mapStateToProps = createStructuredSelector({