fetch from LS removed

This commit is contained in:
Komek Hayytnazarov 2022-09-29 15:59:56 +05:00
parent bb32e25b5f
commit ebb40f7b3a
1 changed files with 4 additions and 4 deletions

View File

@ -307,7 +307,7 @@ const fetchAccount = async () => {
const response = await fetchWrapper.get(`${baseUrl}/account`);
const data = response.data;
console.log("getAccount data: ", data);
console.log("fetchAccount data: ", data);
legalAppStatus.value = data.legal_app_status;
legalExpiresAt.value = data.legal_expires_at;
@ -349,7 +349,7 @@ const fetchAccount = async () => {
};
// get the account from localStorage
const getAccount = async () => {
/* const getAccount = async () => {
console.log("getAccount ");
try {
@ -392,7 +392,7 @@ const getAccount = async () => {
} catch (error) {
isLoading.value = false;
}
};
}; */
/*
legal_app_status
@ -402,6 +402,6 @@ legal_expires_at
legal_number
*/
onMounted(async () => {
await getAccount();
await fetchAccount(); //getAccount();
});
</script>