Update app/lib/api.ts
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 2m31s

This commit is contained in:
Nathan 2025-09-12 20:56:19 +02:00
parent 598b7a7f05
commit 57a2a138d4

View file

@ -195,7 +195,7 @@ interface CollePayload {
export const useColles = (startDate: DateTime) => { export const useColles = (startDate: DateTime) => {
// Check if the start date is the current week // Check if the start date is the current week
// This is used to determine if the data is "actual" or not // This is used to determine if the data is "actual" or not
const isFuture = startDate.isAfter(DateTime.now()); const isFuture = startDate > DateTime.now();
const options = isFuture const options = isFuture
? { ? {