Skip to content
Snippets Groups Projects
Commit ac1b1184 authored by VIktorGrev's avatar VIktorGrev
Browse files

feat: Adding points check

parent a18e51a3
No related branches found
No related tags found
1 merge request!106Feat/profile and settings improvements
Pipeline #285410 passed with warnings
...@@ -157,7 +157,7 @@ import handleUnknownError from '@/components/Exceptions/unkownErrorHandler'; ...@@ -157,7 +157,7 @@ import handleUnknownError from '@/components/Exceptions/unkownErrorHandler';
let apiUrl = import.meta.env.VITE_APP_API_URL; let apiUrl = import.meta.env.VITE_APP_API_URL;
const products = ref([] as any); const products = ref([] as any);
const points = ref(); const points = ref(0 as any);
/** /**
* Retrieves the store's products and updates the products list. * Retrieves the store's products and updates the products list.
...@@ -178,7 +178,9 @@ const getStore = async () => { ...@@ -178,7 +178,9 @@ const getStore = async () => {
const getPoints = async () => { const getPoints = async () => {
try { try {
const response = await UserService.getUser(); const response = await UserService.getUser();
points.value = response.point?.currentPoints; if (response.point?.currentPoints !== null) {
points.value = response.point?.currentPoints;
}
} catch (error) { } catch (error) {
handleUnknownError(error); handleUnknownError(error);
console.log(error); console.log(error);
......
...@@ -334,7 +334,7 @@ const toUpdateUserSettings = () => { ...@@ -334,7 +334,7 @@ const toUpdateUserSettings = () => {
height: 200px; height: 200px;
} }
@media (max-width: 940px) { @media (max-width: 980px) {
#banner { #banner {
height: 320px; height: 320px;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment