This commit is contained in:
nurmuhammet committed 2024-10-18 20:30:24 +05:00
1 parent 8416e28a5a
commit 55d12712e6
1 file changed
+8 -1
+8 -1
View File
@@ -36,6 +36,7 @@ async function fetchLoanHistory(containerID, passport_serie, passport_id) {
if (recipients.length < 1) {
Nova.error('Karz taryhy ýok')
cardHistoryDetailContainer.innerHTML = `<strong><h3>Karz taryhy ýok</h3></strong>`;
return;
}
@@ -97,6 +98,12 @@ async function fetchCardHistory(passport_serie, passport_id, card_number, card_e
console.log({result: result})
if (result.errCode != 0) {
Nova.error(result.message)
cardHistoryDetailContainer.innerHTML = `
<h3><strong>${result.message}</strong></h3>
`;
return;
}
cardHistoryDetailContainer.innerHTML = `
@@ -120,7 +127,7 @@ async function fetchCardHistory(passport_serie, passport_id, card_number, card_e
}).replaceAll('/', '.')
}</strong></p>
</li>`;
})}
}) '<br />'}
</ul>
</p>
`;