From ebb40f7b3a53ab080b402d6b8a46d5e56410c9a5 Mon Sep 17 00:00:00 2001 From: Komek Hayytnazarov Date: Thu, 29 Sep 2022 15:59:56 +0500 Subject: [PATCH] fetch from LS removed --- src/views/profile/Main.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/profile/Main.vue b/src/views/profile/Main.vue index 22ccb13..16d961e 100644 --- a/src/views/profile/Main.vue +++ b/src/views/profile/Main.vue @@ -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(); });