Skip to content

Commit

Permalink
fix: build error because of currency
Browse files Browse the repository at this point in the history
  • Loading branch information
kweripx committed Jan 9, 2024
1 parent 53b4227 commit 3dbbfa6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { StarterPlanPricingCard } from './StarterPlanPricingCard'
import { ProPlanPricingCard } from './ProPlanPricingCard'
import { useTranslate } from '@tolgee/react'
import { StripeClimateLogo } from './StripeClimateLogo'
import { guessIfUserIsEuropean } from '@typebot.io/lib/billing/guessIfUserIsEuropean'
// import { guessIfUserIsEuropean } from '@typebot.io/lib/billing/guessIfUserIsEuropean'

type Props = {
workspace: Workspace
Expand Down Expand Up @@ -62,9 +62,7 @@ export const ChangePlanForm = ({ workspace, excludedPlans }: Props) => {
const newSubscription = {
plan,
workspaceId: workspace.id,
currency:
data?.subscription?.currency ??
(guessIfUserIsEuropean() ? 'eur' : 'usd'),
currency: data?.subscription?.currency ?? 'brl',
} as const
if (workspace.stripeId) {
updateSubscription({
Expand Down

1 comment on commit 3dbbfa6

@vercel
Copy link

@vercel vercel bot commented on 3dbbfa6 Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.