Merge branch 'bugfix/warning_text' into 'develop'

loan description state id 7

See merge request witel-front-end/loan-facilities/user-v2!14
This commit is contained in:
AmirHossein Mahmoodi
2024-11-16 07:31:15 +00:00
2 changed files with 9 additions and 2 deletions

View File

@@ -151,6 +151,7 @@
"loan_bank_branch": "اطلاعات شعبه",
"loan_details": "نمایش",
"loan_edit": "ویرایش",
"loan_no_expert_description": "اطلاعاتی موجود نیست",
"loan_cancel": "رد درخواست",
"loan_review": "درحال بررسی",
"loan_reserve": "در صف انتظار",

View File

@@ -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")
}`}
</Typography>
)}
{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")
}`}
</Typography>
)}
</Stack>