File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
client/a8c-for-agencies/sections/marketplace/refer-hosting Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 11import { SearchableDropdown } from '@automattic/components' ;
22import { Button } from '@wordpress/components' ;
33import { useTranslate } from 'i18n-calypso' ;
4- import { ChangeEvent , useCallback , useMemo , useState } from 'react' ;
4+ import { ChangeEvent , useCallback , useState } from 'react' ;
55import Form from 'calypso/a8c-for-agencies/components/form' ;
66import FormField from 'calypso/a8c-for-agencies/components/form/field' ;
77import FormSection from 'calypso/a8c-for-agencies/components/form/section' ;
@@ -123,10 +123,6 @@ export default function ReferHostingForm( {
123123
124124 const { countryOptions } = useCountriesAndStates ( ) ;
125125
126- const countries = useMemo ( ( ) => {
127- return countryOptions . map ( ( country ) => country . label ) ;
128- } , [ countryOptions ] ) ;
129-
130126 const {
131127 formData,
132128 updateFormData,
@@ -237,7 +233,7 @@ export default function ReferHostingForm( {
237233 value = { formData . country }
238234 onChange = { ( value : string ) => handleInputChange ( 'country' , value ) }
239235 placeholder = { translate ( 'Select country' ) }
240- options = { countries . map ( ( country ) => ( { value : country , label : country } ) ) }
236+ options = { countryOptions }
241237 />
242238
243239 < TextField
You can’t perform that action at this time.
0 commit comments