Fix sale countdown timer to properly update when sale dates change

- Fix SaleCountdown useEffect dependency array to include saleEndDate
- Remove console logs and debug output from page.tsx
- Clean up date parsing logic and remove unnecessary error handling
- Ensure countdown recalculates when sale end date changes
- Fix TypeScript type comparison for sale_active boolean check
This commit is contained in:
DaX
2025-07-11 13:32:27 +02:00
parent 34e9885a29
commit 18a4cd1e34
4 changed files with 22 additions and 20 deletions

View File

@@ -69,7 +69,8 @@ export const colorService = {
export const filamentService = {
getAll: async () => {
const response = await api.get('/filaments');
const cacheBuster = Date.now();
const response = await api.get(`/filaments?_t=${cacheBuster}`);
return response.data;
},