Skip to content

Commit

Permalink
clients: Remove OC code references
Browse files Browse the repository at this point in the history
  • Loading branch information
birkjernstrom committed Feb 7, 2025
1 parent 3c05d20 commit 8cd1076
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions clients/apps/web/src/components/Accounts/AccountCreateModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
SelectTrigger,
SelectValue,
} from '@polar-sh/ui/components/atoms/Select'
import { ChangeEvent, useState } from 'react'
import { useState } from 'react'

const stripeConnectWhitelist = CONFIG.STRIPE_COUNTRIES_WHITELIST_CSV.split(',')

Expand All @@ -33,9 +33,6 @@ const AccountCreateModal = ({
const [accountType, setAccountType] = useState<AccountType>(
AccountType.STRIPE,
)
const [openCollectiveSlug, setOpenCollectiveSlug] = useState<string | null>(
null,
)
const [country, setCountry] = useState<string>('US')
const [validationErrors, setValidationErrors] = useState<
Record<string, string[]>
Expand All @@ -54,11 +51,6 @@ const AccountCreateModal = ({
setAccountType(value as AccountType)
}

const onChangeOpenCollectiveSlug = (e: ChangeEvent<HTMLInputElement>) => {
resetErrors()
setOpenCollectiveSlug(e.target.value)
}

const onChangeCountry = (countryCode: string) => {
resetErrors()
setCountry(countryCode)
Expand All @@ -72,9 +64,6 @@ const AccountCreateModal = ({
body: {
account_type: accountType,
country,
...(openCollectiveSlug
? { open_collective_slug: openCollectiveSlug }
: {}),
},
})
if (forOrganizationId) {
Expand Down

0 comments on commit 8cd1076

Please sign in to comment.