diff --git a/src/pages/CaseDetails/components/CustomerSummary/CustomerDescriptions.tsx b/src/pages/CaseDetails/components/CustomerSummary/CustomerDescriptions.tsx
index ab1166e4..1961df42 100644
--- a/src/pages/CaseDetails/components/CustomerSummary/CustomerDescriptions.tsx
+++ b/src/pages/CaseDetails/components/CustomerSummary/CustomerDescriptions.tsx
@@ -18,6 +18,7 @@ import { EMPLOYMENT_TYPE } from './interfaces';
import CopyToClipboardIcon from '@cp/src/assets/icons/CopyToClipboardIcon';
import EllipsisText from '@cp/src/components/EllipsisText';
import CompanyIcon from '@cp/src/assets/icons/CompanyIcon';
+import { capitalizeFirstLetterOfEachWord } from '@cp/src/pages/AllAgents/AgentForm/utils/utils';
const CustomerDescriptions = () => {
const { loanId = '', customerId = '' } = useParams();
@@ -52,18 +53,12 @@ const CustomerDescriptions = () => {
const { monthlyIncome, employmentType, employerName } = pageDetail?.data?.employmentDetails || {};
const getAddress = () => {
- let permanentAddresses = customerInfo?.addresses
- ?.filter(address => {
- return address.permanent && address.state;
- })
- .reduce((acc, curr) => {
- return curr.state?.length && curr.state.length >= acc.length ? curr.state : acc;
- }, '--');
-
- permanentAddresses = String(permanentAddresses).toUpperCase();
-
- return permanentAddresses?.length == 2 ? getStateName(permanentAddresses) : permanentAddresses;
+ const stateName = customerInfo?.addresses?.[0]?.state || '';
+ return stateName?.length == 2
+ ? getStateName(stateName?.toUpperCase())
+ : capitalizeFirstLetterOfEachWord(stateName);
};
+
return (
{
);
diff --git a/src/pages/CaseDetails/interfaces/CustomerDetailAndbankAccount.type.ts b/src/pages/CaseDetails/interfaces/CustomerDetailAndbankAccount.type.ts
index 1ba7720c..6aab7a8b 100644
--- a/src/pages/CaseDetails/interfaces/CustomerDetailAndbankAccount.type.ts
+++ b/src/pages/CaseDetails/interfaces/CustomerDetailAndbankAccount.type.ts
@@ -549,7 +549,7 @@ interface BankAccount {
referenceId: string;
beneficiaryName: string;
accountNumber: string;
- ifscCode: string;
+ ifsc: string;
bankName: string;
type: string;
status: string;
diff --git a/src/pages/cosmos/DownloadForFieldAgent.tsx b/src/pages/cosmos/DownloadForFieldAgent.tsx
index 1f11f113..3dca7471 100644
--- a/src/pages/cosmos/DownloadForFieldAgent.tsx
+++ b/src/pages/cosmos/DownloadForFieldAgent.tsx
@@ -1,14 +1,12 @@
import axiosInstance, { ApiKeys, getApiUrl } from '@cp/src/utils/ApiHelper';
import React, { useEffect } from 'react';
-import styles from './index.module.scss';
import { Button, Typography } from '@navi/web-ui/lib/primitives';
-import { NaviLogoIcon } from '@navi/web-ui/lib/icons';
-import cx from 'classnames';
-import Header from '@cp/src/components/Header/Header';
import Lottie from 'react-lottie';
import dancingRobot from '../../assets/json/dancingRobot.json';
import NaviIconWithText from '@cp/src/assets/icons/NaviIconWithText';
+import { CLICKSTREAM_EVENT_NAMES } from '@cp/src/service/clickStream.constant';
+import { addClickstreamEvent } from '@cp/src/service/clickStreamEventService';
interface AppData {
downloadPreSignedUrl: string;
@@ -40,6 +38,10 @@ const DownloadForFieldAgent = () => {
anchorTag.current?.setAttribute('href', fileUrl);
anchorTag.current?.setAttribute('download', `fileld_agent_app_${appData?.appVersion}.apk`);
+ addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.LH_FIELD_AGENT_COSMOS_DOWNLOAD_BUTTON_CLICKED, {
+ appVersion: appData?.appVersion,
+ buildNumber: appData?.buildNumber
+ });
// Trigger click event on the anchor element
anchorTag.current?.click();
};
diff --git a/src/service/clickStream.constant.ts b/src/service/clickStream.constant.ts
index 8044507e..6c53b6be 100644
--- a/src/service/clickStream.constant.ts
+++ b/src/service/clickStream.constant.ts
@@ -779,6 +779,10 @@ export const CLICKSTREAM_EVENT_NAMES = Object.freeze({
LH_MAP_VIEW_INCORRECT_DATA: {
name: 'LH_MAP_VIEW_INCORRECT_DATA',
description: 'Wrong reference id in url of map view'
+ },
+ LH_FIELD_AGENT_COSMOS_DOWNLOAD_BUTTON_CLICKED: {
+ name: 'LH_FIELD_AGENT_COSMOS_DOWNLOAD_BUTTON_CLICKED',
+ description: 'Cosmos download button clicked'
}
});
diff --git a/src/utils/ApiHelper.ts b/src/utils/ApiHelper.ts
index 3907a644..609e05f3 100644
--- a/src/utils/ApiHelper.ts
+++ b/src/utils/ApiHelper.ts
@@ -306,7 +306,7 @@ API_URLS[ApiKeys.WA_INTERACTIONS] = '/agent-interactions/fetch/whatsapp';
API_URLS[ApiKeys.DIGITAL_COMMUNICATION] = '/digital-communication';
API_URLS[ApiKeys.GET_LEADERBOARD_DETAILS] = '/levels/agents/{agentReferenceId}/ranking';
API_URLS[ApiKeys.GET_FORECLOSURE_AMOUNT] = '/payments/{lan}/pre-closure-amount';
-API_URLS[ApiKeys.FETCH_CUSTOMER_INFO] = '/customers/{customerRefId}';
+API_URLS[ApiKeys.FETCH_CUSTOMER_INFO] = '/customers/v1/{customerRefId}';
API_URLS[ApiKeys.FETCH_REPAYMENT_HISTORY] = 'loan-details/{loanId}/repayment-history';
API_URLS[ApiKeys.OAUTH_SIGNIN] = '/google/sign-in/url';
API_URLS[ApiKeys.OAUTH_EXCHANGE_SESSION] = '/session/exchange';