lots of shopping tweaks

This commit is contained in:
vabene1111
2024-12-01 12:32:16 +01:00
parent 557954a259
commit 423dc7a6bf
150 changed files with 2918 additions and 2207 deletions

View File

@@ -8,7 +8,7 @@ import {IShoppingListFood} from "@/types/Shopping";
export function isDelayed(entry: ShoppingListEntry){
// this function is needed because the openapi typescript fetch client always replaces null with undefined, so delayUntil cant be
// set back to null once it has been delayed once. This will hopefully be fixed at some point, until then un-delaying will set the date to 1997-1-1 00:00
return entry.delayUntil !== null && entry.delayUntil > Date.now()
return entry.delayUntil != null && entry.delayUntil > new Date()
}
/**