diff --git a/src/components/scenes/RampKycFormScene.tsx b/src/components/scenes/RampKycFormScene.tsx index 01965f57da3..3b0403a2010 100644 --- a/src/components/scenes/RampKycFormScene.tsx +++ b/src/components/scenes/RampKycFormScene.tsx @@ -5,6 +5,7 @@ import { useHandler } from '../../hooks/useHandler' import { lstrings } from '../../locales/strings' import { GuiFormField } from '../../plugins/gui/components/GuiFormField' import { GuiFormRow } from '../../plugins/gui/components/GuiFormRow' +import { useSelector } from '../../types/reactRedux' import type { BuySellTabSceneProps } from '../../types/routerTypes' import { ErrorCard } from '../cards/ErrorCard' import { SceneWrapper } from '../common/SceneWrapper' @@ -59,6 +60,12 @@ export const RampKycFormScene = React.memo((props: Props) => { onCancel } = params + const countryCode = useSelector(state => state.ui.settings.countryCode) + const stateFieldLabel = + countryCode === 'US' + ? lstrings.form_field_title_address_state + : lstrings.form_field_title_address_state_province_region + const [firstName, setFirstName] = React.useState(initialFirstName) const [lastName, setLastName] = React.useState(initialLastName) const [email, setEmail] = React.useState(initialEmail) @@ -231,7 +238,7 @@ export const RampKycFormScene = React.memo((props: Props) => {