diff --git a/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.tsx b/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.tsx index 7aa815efed5..582ba0a74ac 100644 --- a/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.tsx +++ b/app/javascript/packages/document-capture/components/in-person-location-post-office-search-step.tsx @@ -38,9 +38,10 @@ function InPersonLocationPostOfficeSearchStep({ onChange, toPreviousStep, regist const handleLocationSelect = useCallback( async (e: any, id: number) => { const selectedLocation = locationResults![id]!; - const { name: selectedLocationName } = selectedLocation; - setSubmitEventMetadata({ selected_location: selectedLocationName }); - onChange({ selectedLocationName }); + const { streetAddress, formattedCityStateZip } = selectedLocation; + const selectedLocationAddress = `${streetAddress}, ${formattedCityStateZip}`; + setSubmitEventMetadata({ selected_location: selectedLocationAddress }); + onChange({ selectedLocationAddress }); if (autoSubmit) { return; } diff --git a/app/javascript/packages/document-capture/components/in-person-prepare-step.tsx b/app/javascript/packages/document-capture/components/in-person-prepare-step.tsx index 6670603cf09..1043d3afdcc 100644 --- a/app/javascript/packages/document-capture/components/in-person-prepare-step.tsx +++ b/app/javascript/packages/document-capture/components/in-person-prepare-step.tsx @@ -20,7 +20,8 @@ function InPersonPrepareStep({ toPreviousStep, value }) { const { flowPath } = useContext(UploadContext); const { trackEvent } = useContext(AnalyticsContext); const { securityAndPrivacyHowItWorksURL } = useContext(MarketingSiteContext); - const { selectedLocationName } = value; + /* Remove selectedLocationName when request_pilot_facilities removed */ + const { selectedLocationName, selectedLocationAddress } = value; const onContinue: MouseEventHandler = async (event) => { event.preventDefault(); @@ -35,13 +36,21 @@ function InPersonPrepareStep({ toPreviousStep, value }) { return ( <> + {/* Remove selectedLocationName version of alert when request_pilot_facilities removed */} {selectedLocationName && ( - {t('in_person_proofing.body.prepare.alert_selected_post_office', { + {t('in_person_proofing.body.prepare.alert_selected_po_name', { name: selectedLocationName, })} )} + {selectedLocationAddress && ( + + {t('in_person_proofing.body.prepare.alert_selected_post_office', { + full_address: selectedLocationAddress, + })} + + )} {t('in_person_proofing.headings.prepare')}

{t('in_person_proofing.body.prepare.verify_step_about')}

diff --git a/config/locales/in_person_proofing/en.yml b/config/locales/in_person_proofing/en.yml index 55da2755c4d..7fa9f20280b 100644 --- a/config/locales/in_person_proofing/en.yml +++ b/config/locales/in_person_proofing/en.yml @@ -69,7 +69,8 @@ en: retail_hours_sun: 'Sun:' retail_hours_weekday: 'Monday to Friday:' prepare: - alert_selected_post_office: You’ve selected the %{name} Post Office. + alert_selected_po_name: You’ve selected the %{name} Post Office. + alert_selected_post_office: You’ve selected the Post Office at %{full_address}. privacy_disclaimer: '%{app_name} is a secure, government website. We and the U.S. Postal Service use your data to verify your identity.' privacy_disclaimer_link: Learn more about privacy and security. diff --git a/config/locales/in_person_proofing/es.yml b/config/locales/in_person_proofing/es.yml index e8af6dbb9a7..c598caf9041 100644 --- a/config/locales/in_person_proofing/es.yml +++ b/config/locales/in_person_proofing/es.yml @@ -76,7 +76,8 @@ es: retail_hours_sun: 'Dom:' retail_hours_weekday: 'De Lunes a Viernes:' prepare: - alert_selected_post_office: Ha seleccionado la oficina de correos %{name}. + alert_selected_po_name: Ha seleccionado la oficina de correos %{name}. + alert_selected_post_office: Ha seleccionado la oficina de correos a %{full_address}. privacy_disclaimer: '%{app_name} es un sitio web seguro del gobierno. Nosotros y el Servicio Postal de los Estados Unidos utilizamos sus datos para verificar su identidad.' diff --git a/config/locales/in_person_proofing/fr.yml b/config/locales/in_person_proofing/fr.yml index cf3ed7f3d23..a21c498cb40 100644 --- a/config/locales/in_person_proofing/fr.yml +++ b/config/locales/in_person_proofing/fr.yml @@ -77,7 +77,8 @@ fr: retail_hours_sun: 'Dim:' retail_hours_weekday: 'Lundi à Vendredi:' prepare: - alert_selected_post_office: Vous avez sélectionné le bureau de poste de %{name}. + alert_selected_po_name: Vous avez sélectionné le bureau de poste de %{name}. + alert_selected_post_office: Vous avez sélectionné le bureau de poste à %{full_address}. privacy_disclaimer: '%{app_name} est un site gouvernemental sécurisé. Nous et le service postal américain utilisons vos données pour vérifier votre identité.'