diff --git a/src/components/form/components/GeolocationAddress.tsx b/src/components/form/components/GeolocationAddress.tsx index e8d02887..4b4756e7 100644 --- a/src/components/form/components/GeolocationAddress.tsx +++ b/src/components/form/components/GeolocationAddress.tsx @@ -204,7 +204,11 @@ const GeolocationAddress: React.FC = ({ {showSimilarGeolocationsCTA ? : null} - Address sus wdgwud wdvwhdgw gduwygd uwgd wgdw dgw udw udgu wgd uwd wdgwuduw dwydgw + {address?.sourceAddress ? ( + + {address?.sourceAddress} + + ) : null} {!isFeedbackView ? ( {isFeedbackPresent ? ( diff --git a/src/screens/caseDetails/ViewAddressSection.tsx b/src/screens/caseDetails/ViewAddressSection.tsx index 44c95efb..04dda0d2 100644 --- a/src/screens/caseDetails/ViewAddressSection.tsx +++ b/src/screens/caseDetails/ViewAddressSection.tsx @@ -19,7 +19,7 @@ interface IViewAddressSection { const ViewAddressSection = ({ caseId }: IViewAddressSection) => { const caseDetail = useAppSelector((state: RootState) => state.allCases.caseDetails[caseId]) || {}; - const { addressString, loanAccountNumber, customerReferenceId } = caseDetail; + const { addressString, loanAccountNumber, customerReferenceId, addressSourceText = AddressGeolocationTabEnum.ADDRESS } = caseDetail; const viewAllAddressHandler = () => { addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_VIEW_ADDRESSES_CLICKED, { @@ -29,7 +29,7 @@ const ViewAddressSection = ({ caseId }: IViewAddressSection) => { loanAccountNumber, customerReferenceId, caseId, - tab: AddressGeolocationTabEnum.GEOLOCATION + tab: addressSourceText }; navigateToScreen(CaseDetailStackEnum.ADDRESS_GEO, commonParams); }; diff --git a/src/screens/caseDetails/interface.ts b/src/screens/caseDetails/interface.ts index fb679dc2..5eb11964 100644 --- a/src/screens/caseDetails/interface.ts +++ b/src/screens/caseDetails/interface.ts @@ -255,6 +255,7 @@ export interface IGeolocation { clusterLabels: string[]; clusterId: string; minTimestamp: string; + sourceAddress?: string; } export interface EmploymentDetails { employmentType: string; @@ -312,6 +313,7 @@ export interface CaseDetail { geolocations?: IGeolocation[]; employmentDetail?: EmploymentDetails; unpaidDays?: number; + addressSourceText?: string; } export interface AddressesGeolocationPayload {