diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index fd17e96a4..d9664e4cb 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -171,11 +171,11 @@ watch( () => props.modal, async () => { modal.value = props.modal ? props.modal : false; - modal.value && - props.id && - (await fetchInformation(props.id), await fetchProfileGov(props.id)), + if (modal.value) { + props.id && (fetchInformation(props.id), fetchProfileGov(props.id)); (fileName.value = `profile-${props.id}`), - await fetchProfile(props.id as string); + fetchProfile(props.id as string); + } } ); @@ -192,9 +192,8 @@ async function fetchProfile(id: string) { .then(async (res) => { avatar.avatar = res.data.downloadUrl; }) - .catch(() => {}) .finally(() => { - hideLoader(); + statusLoad.value.val = true; }); }