From b03909e0dd1f9e0896ea309dcab470769604c1f9 Mon Sep 17 00:00:00 2001 From: emil <33105890+poolsar42@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:52:44 -0400 Subject: [PATCH] wip --- .../app/routes/apps/$clientId/billing.tsx | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/apps/console/app/routes/apps/$clientId/billing.tsx b/apps/console/app/routes/apps/$clientId/billing.tsx index 116fccf424..941fe55c7b 100644 --- a/apps/console/app/routes/apps/$clientId/billing.tsx +++ b/apps/console/app/routes/apps/$clientId/billing.tsx @@ -738,17 +738,15 @@ export default () => { useEffect(() => { if (actionData) { const { status, client_secret, payment_method, subId } = actionData - ;(async () => { - await process3DSecureCard({ - submit, - subId, - STRIPE_PUBLISHABLE_KEY, - status, - client_secret, - payment_method, - redirectUrl: `/apps/${appDetails.clientId}/billing`, - }) - })() + process3DSecureCard({ + submit, + subId, + STRIPE_PUBLISHABLE_KEY, + status, + client_secret, + payment_method, + redirectUrl: `/apps/${appDetails.clientId}/billing`, + }) } }, [actionData])