Skip to content

Commit 02032a4

Browse files
author
Nika Kolesnikova
committed
fix: remove logical check for empty input field
1 parent 20505c6 commit 02032a4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/components/AddItems.jsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ export function AddItems({ items }) {
4545
const daysUntilNextPurchase =
4646
event.target.elements['purchase-date'].value;
4747

48-
if (itemName === '') {
49-
alert('Please add an item name.');
50-
return;
51-
}
52-
if (!daysUntilNextPurchase) {
53-
alert('Please select an option for date');
54-
return;
55-
}
56-
5748
try {
5849
await addItem(listPath, {
5950
itemName,

0 commit comments

Comments
 (0)