fixed bugs

This commit is contained in:
AmirHossein Mahmoodi
2024-02-12 11:31:27 +03:30
parent 4e2c4ff699
commit 86e6d45091
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ const RequestCard = ({item}) => {
{`${t("LoanFollowUp.loan_description")}: ${item.latest_history.expert_description}`}
</Typography>
)}
{item.state_id === 8 && item.bank_status === 0 && (
{item.state_id === 8 && item.bank_status == 0 && (
<Button variant="contained" color="primary" sx={{alignSelf: 'flex-end'}}>
<LinkRouting underline="none" color="inherit" href={`/dashboard/navgan/${item.id}/show`}>
{t("LoanFollowUp.loan_details")}

View File

@@ -26,7 +26,7 @@ const ShowLoanForm = () => {
<Typography>{t("ShowLoan.loading_show_component")}</Typography>
</Stack>
);
} else if (!(LoanDetails.state_id === 8 && LoanDetails.bank_status === 0)) {
} else if (!(LoanDetails.state_id === 8 && LoanDetails.bank_status == 0)) {
return (
<Stack sx={{alignItems: "center", justifyContent: "center"}} spacing={3}>
<Typography>{t("ShowLoan.error_message_not_show_state")}</Typography>