mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 08:24:55 +00:00
Shopping List backend implementation
- Small code improvements
This commit is contained in:
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user