MCPcopy Create free account
hub / github.com/artsy/force / buildUSAddressText

Function buildUSAddressText

src/Components/Address/AddressAutocompleteInput.tsx:677–686  ·  view source on GitHub ↗
(suggestion: ProviderSuggestionUS)

Source from the content-addressed store, hash-verified

675}
676
677const buildUSAddressText = (suggestion: ProviderSuggestionUS): string => {
678 let buildingAddress = suggestion.street_line
679 if (suggestion.secondary) buildingAddress += ` ${suggestion.secondary}`
680
681 return [
682 `${buildingAddress}, ${suggestion.city}`,
683 suggestion.state,
684 suggestion.zipcode,
685 ].join(" ")
686}
687
688const filterSecondarySuggestions = (suggestions: ProviderSuggestionUS[]) => {
689 const noSecondaryData = suggestions.map(({ secondary, ...suggestion }) => ({

Callers 2

AddressAutocompleteInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected