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:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user