online applications page done

This commit is contained in:
Komek Hayytnazarov 2023-04-11 16:22:52 +05:00
parent b44a1c2d14
commit a19160dc66
1 changed files with 9 additions and 9 deletions

View File

@ -119,7 +119,6 @@ const createBrokerApplication = async () => {
const response = await fetchWrapper.get(`${baseUrl}/broker-application/new`);
const data = response.data;
console.log('DDDDDDD: ' + data);
isBrokerBtnLoading.value = false;
return true;
} catch (error) {
@ -238,19 +237,20 @@ const fetchStatus = async () => {
if (data.broker) {
Object.assign(broker, data.broker);
if (broker.expires_at) {
// convert date format
broker.expires_at = $h.formatDate(broker.expires_at, "DD.MM.YYYY");
}
// if (broker.expires_at) {
// // convert date format
// broker.expires_at = $h.formatDate(broker.expires_at, "DD.MM.YYYY");
// }
}
if (data.legal) {
Object.assign(legal, data.legal);
if (legal.expires_at) {
// convert date format
legal.expires_at = $h.formatDate(legal.expires_at, "DD.MM.YYYY");
}
// if (legal.expires_at) {
// // convert date format
// legal.expires_at = $h.formatDate(legal.expires_at, "DD.MM.YYYY");
// }
}
prepareLegalBtnTitle();