NTP-12177 | Feedback history fix (#1013)

This commit is contained in:
Aman Chaturvedi
2024-11-19 12:12:48 +05:30
committed by GitHub
5 changed files with 8 additions and 20 deletions

View File

@@ -134,8 +134,8 @@ def reactNativeArchitectures() {
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}
def VERSION_CODE = 214
def VERSION_NAME = "2.15.0"
def VERSION_CODE = 215
def VERSION_NAME = "2.15.1"
android {
ndkVersion rootProject.ext.ndkVersion

View File

@@ -1,7 +1,7 @@
{
"name": "AV_APP",
"version": "2.15.0",
"buildNumber": "214",
"version": "2.15.1",
"buildNumber": "215",
"private": true,
"scripts": {
"android:dev": "yarn move:dev && react-native run-android",

View File

@@ -70,6 +70,7 @@ const CollectionCaseDetails: React.FC<ICaseDetails> = (props) => {
if (loanAccountNumber) {
dispatch(getAddressesAndGeolocations(loanAccountNumber));
dispatch(getUngroupedAddress(loanAccountNumber));
dispatch(getFeedbackHistory(loanAccountNumber));
}
}, [loanAccountNumber])
);

View File

@@ -93,7 +93,7 @@ const FeedbackListContainer: React.FC<IFeedbackListContainer> = ({
return <OfflineFeedbackListContainer handleRetryEvent={handleRetryEvent} />;
}
if (!feedbackList?.length) {
if (!feedbackList?.length && !feedbackListLoading) {
return <NoFeedbackFoundContainer />;
}

View File

@@ -33,21 +33,13 @@ const interactionsHandler = () => {
const inProgressCaseIds = useRef<string[]>([]);
const handleSuccessSubmit = (
caseKey: string,
interactionId: string,
caseId: string,
loanAccountNumber: string
) => {
const handleSuccessSubmit = (caseKey: string, interactionId: string, caseId: string) => {
const docs = docsToBeUploaded?.[caseKey]?.documents;
if (!docs) {
return;
}
dispatch(setDocumentInteractionId({ caseKey, interactionId, caseId }));
dispatch(uploadImages(caseKey, docs, interactionId));
if (loanAccountNumber) {
dispatch(getFeedbackHistory(loanAccountNumber));
}
};
useEffect(() => {
@@ -83,12 +75,7 @@ const interactionsHandler = () => {
dispatch(
syncCaseDetail(modifiedCaseItem, {
onSuccessCB: (_, interactionId) =>
handleSuccessSubmit(
caseKey,
interactionId,
caseItem.caseId,
caseItem.loanAccountNumber
),
handleSuccessSubmit(caseKey, interactionId, caseItem.caseId),
})
);
}