The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix hcaptcha loading for proupgrade and enterprise update
Joshen Lim0d5c1556a61d
diff --git a/studio/components/interfaces/Billing/EnterpriseUpdate.tsx b/studio/components/interfaces/Billing/EnterpriseUpdate.tsxindex ed599f91aa2..078cd190f42 100644--- a/studio/components/interfaces/Billing/EnterpriseUpdate.tsx+++ b/studio/components/interfaces/Billing/EnterpriseUpdate.tsx@@ -140,11 +140,14 @@ const EnterpriseUpdate: FC<Props> = ({// Last todo to support enterprise billing on dashboard + E2E testconst onConfirmPayment = async () => {setIsSubmitting(true)+ let token = captchaToken- const token =- captchaToken ?? (await captchaRef.current?.execute({ async: true }))?.response ?? undefined-- if (!token) {+ try {+ if (!token) {+ const captchaResponse = await captchaRef.current?.execute({ async: true })+ token = captchaResponse?.response ?? null+ }+ } catch (error) {setIsSubmitting(false)return}diff --git a/studio/components/interfaces/Billing/ProUpgrade.tsx b/studio/components/interfaces/Billing/ProUpgrade.tsxindex d30584ef87c..e7f246d8b27 100644--- a/studio/components/interfaces/Billing/ProUpgrade.tsx+++ b/studio/components/interfaces/Billing/ProUpgrade.tsx@@ -168,13 +168,10 @@ const ProUpgrade: FC<Props> = ({token = captchaResponse?.response ?? null}} catch (error) {- console.log('ERRORR', error)setIsSubmitting(false)return}- console.log('TOKEN', { token })-const payload = formSubscriptionUpdatePayload(currentSubscription,selectedTier,