Shopping List backend implementation

- Small code improvements
This commit is contained in:
Dejan
2024-10-11 16:28:17 +02:00
parent 22e962a8b2
commit 86231daba4

View File

@ -50,10 +50,10 @@ const GroceryList = () => {
if (submit) { if (submit) {
if (title?.length > 2 && title?.length <= 25) { if (title?.length > 2 && title?.length <= 25) {
addGrocery({ addGrocery({
id: 0, id: "",
title: title, title: title,
category: category, category: category,
approved: profileData?.userType === ProfileType.PARENT ? true : false, approved: profileData?.userType === ProfileType.PARENT,
recurring: false, recurring: false,
frequency: GroceryFrequency.Never, frequency: GroceryFrequency.Never,
bought: false, bought: false,