fixing bug

This commit is contained in:
Warunee Tamkoo 2024-08-28 15:59:48 +07:00
parent a457b0be98
commit 8abd0681fa
2 changed files with 2 additions and 2 deletions

View file

@ -499,7 +499,7 @@ const fetchData = async () => {
defaultInformation.value.tel = data.telephone;
defaultInformation.value.knowledge = data.knowledge;
})
.catch(() => {
.catch(async () => {
const user = await tokenParsed();
defaultInformation.value.email = user ? user.email : "";
defaultInformation.value.firstname = user ? user.given_name : "";

View file

@ -5,7 +5,7 @@ import { useRoute } from "vue-router";
const route = useRoute();
onMounted(() => {
onMounted(async () => {
if (route.query.token && route.query.accessToken) {
const params = await {
access_token: route.query.token,