From 89f3a266350c8a0d943d9e162c9f57351bcce686 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Fri, 22 Oct 2021 12:59:45 -0700 Subject: [PATCH] Revert "Disable stripe promise." This reverts commit 3ece5e0ba265f4a7773da71cd4b21c5c0b2b4f8a. --- .../pages/manage/manage.page.component.jsx | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/client/src/pages/manage/manage.page.component.jsx b/client/src/pages/manage/manage.page.component.jsx index 9ca45fd18..986d5a72d 100644 --- a/client/src/pages/manage/manage.page.component.jsx +++ b/client/src/pages/manage/manage.page.component.jsx @@ -166,18 +166,16 @@ const Dms = lazy(() => import("../dms/dms.container")); const { Content, Footer } = Layout; const stripePromise = new Promise((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(); - // }); + 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({