diff --git a/.env.local.example b/.env.local.example index 9285573..9bd990f 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,5 +1,5 @@ NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard" -NEXT_PUBLIC_API_VERSION = "2.3.3" +NEXT_PUBLIC_API_VERSION = "2.3.4" NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa" NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl" 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..62ab5c7 100644 --- a/src/components/dashboard/navgan/followUp-loan/RequestCard.jsx +++ b/src/components/dashboard/navgan/followUp-loan/RequestCard.jsx @@ -87,7 +87,11 @@ 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 +105,11 @@ 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") + }`} )} diff --git a/src/components/dashboard/navgan/show/form/UpdateFormReal.jsx b/src/components/dashboard/navgan/show/form/UpdateFormReal.jsx index a759992..037d7ff 100644 --- a/src/components/dashboard/navgan/show/form/UpdateFormReal.jsx +++ b/src/components/dashboard/navgan/show/form/UpdateFormReal.jsx @@ -191,7 +191,7 @@ const UpdateFormReal = ({ LoanDetails, LoanId }) => { formik.setFieldValue("requested_facilities", formik.values.requested_facilities); } }; - console.log(formik.values.requested_facilities); + return ( <>