diff --git a/src/components/Shop/ItemShop.vue b/src/components/Shop/ItemShop.vue index 417bc6e627d979e608f274b30ce23466c02f9fb0..350603abae74b0c8f6e94b9d5ae33392e42938f8 100644 --- a/src/components/Shop/ItemShop.vue +++ b/src/components/Shop/ItemShop.vue @@ -157,7 +157,7 @@ import handleUnknownError from '@/components/Exceptions/unkownErrorHandler'; let apiUrl = import.meta.env.VITE_APP_API_URL; const products = ref([] as any); -const points = ref(); +const points = ref(0 as any); /** * Retrieves the store's products and updates the products list. @@ -178,7 +178,9 @@ const getStore = async () => { const getPoints = async () => { try { const response = await UserService.getUser(); - points.value = response.point?.currentPoints; + if (response.point?.currentPoints !== null) { + points.value = response.point?.currentPoints; + } } catch (error) { handleUnknownError(error); console.log(error); diff --git a/src/components/UserProfile/MyProfile.vue b/src/components/UserProfile/MyProfile.vue index e6a4871922b77d5dd24d5903c11ce18e9645f492..9ef9add95c9d8b50f1aa400a82d3d817e584345e 100644 --- a/src/components/UserProfile/MyProfile.vue +++ b/src/components/UserProfile/MyProfile.vue @@ -334,7 +334,7 @@ const toUpdateUserSettings = () => { height: 200px; } -@media (max-width: 940px) { +@media (max-width: 980px) { #banner { height: 320px; }