fix merge

This commit is contained in:
Patryk
2025-06-09 21:49:07 +02:00
parent a51345fd93
commit a04ef906cd
6 changed files with 246 additions and 351 deletions

View File

@@ -13,6 +13,6 @@ export async function listCategories() {
});
return response.data;
} catch (err) {
console.error("Nie udało się pobrać listy kategorii.", err.response.status);
// console.error("Nie udało się pobrać listy kategorii.", err.response.status);
}
}

View File

@@ -7,10 +7,9 @@ export async function getUserById(userId) {
const { token } = useAuthStore.getState();
const headers = token ? { Authorization: `Bearer ${token}` } : {};
try {
const response = await axios.get(
`${API_URL}/clients/get/${userId}`,
headers
);
const response = await axios.get(`${API_URL}/clients/get/${userId}`, {
headers: headers,
});
return response.data;
} catch (err) {
console.error(