@@ -5,6 +5,7 @@ import { useHandler } from '../../hooks/useHandler'
55import { lstrings } from '../../locales/strings'
66import { GuiFormField } from '../../plugins/gui/components/GuiFormField'
77import { GuiFormRow } from '../../plugins/gui/components/GuiFormRow'
8+ import { useSelector } from '../../types/reactRedux'
89import type { BuySellTabSceneProps } from '../../types/routerTypes'
910import { ErrorCard } from '../cards/ErrorCard'
1011import { SceneWrapper } from '../common/SceneWrapper'
@@ -59,6 +60,12 @@ export const RampKycFormScene = React.memo((props: Props) => {
5960 onCancel
6061 } = params
6162
63+ const countryCode = useSelector ( state => state . ui . settings . countryCode )
64+ const stateFieldLabel =
65+ countryCode === 'US'
66+ ? lstrings . form_field_title_address_state
67+ : lstrings . form_field_title_address_state_province_region
68+
6269 const [ firstName , setFirstName ] = React . useState ( initialFirstName )
6370 const [ lastName , setLastName ] = React . useState ( initialLastName )
6471 const [ email , setEmail ] = React . useState ( initialEmail )
@@ -231,7 +238,7 @@ export const RampKycFormScene = React.memo((props: Props) => {
231238 < GuiFormField
232239 fieldType = "state"
233240 value = { state }
234- label = { lstrings . form_field_title_address_state_province_region }
241+ label = { stateFieldLabel }
235242 onChangeText = { handleStateInput }
236243 onSubmitEditing = { handleStateSubmit }
237244 returnKeyType = "next"
0 commit comments