diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index b3808f2..66e6b2b 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -151,6 +151,7 @@ "loan_bank_branch": "اطلاعات شعبه", "loan_details": "نمایش", "loan_edit": "ویرایش", + "loan_no_expert_description": "اطلاعاتی موجود نیست", "loan_cancel": "رد درخواست", "loan_review": "درحال بررسی", "loan_reserve": "در صف انتظار", diff --git a/src/components/dashboard/navgan/followUp-loan/RequestCard.jsx b/src/components/dashboard/navgan/followUp-loan/RequestCard.jsx index 7d0d4f3..10bee5f 100644 --- a/src/components/dashboard/navgan/followUp-loan/RequestCard.jsx +++ b/src/components/dashboard/navgan/followUp-loan/RequestCard.jsx @@ -87,7 +87,10 @@ const RequestCard = ({ item }) => { wordBreak: "break-word", }} > - {`${t("LoanFollowUp.loan_description")}: ${item.latestHistory.expert_description}`} + {`${t("LoanFollowUp.loan_description")}: ${item.latestHistory?.expert_description + ? item.latestHistory.expert_description + : t("LoanFollowUp.loan_no_expert_description") + }`} )} {item.state_id === 7 && ( @@ -101,7 +104,10 @@ const RequestCard = ({ item }) => { wordBreak: "break-word", }} > - {`${t("LoanFollowUp.loan_description")}: درخواست وام توسط بانک تایید نشد (نیاز به اصلاح اطلاعات) `} + {`${t("LoanFollowUp.loan_description")}: ${item.latestHistory?.expert_description + ? item.latestHistory.expert_description + : t("LoanFollowUp.loan_no_expert_description") + }`} )}