(suggestion: ProviderSuggestionUS)
| 675 | } |
| 676 | |
| 677 | const 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 | |
| 688 | const filterSecondarySuggestions = (suggestions: ProviderSuggestionUS[]) => { |
| 689 | const noSecondaryData = suggestions.map(({ secondary, ...suggestion }) => ({ |
no outgoing calls
no test coverage detected