Skip to content

Commit

Permalink
fix: remove the unneeded parseInt in firebase.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bbland1 committed Aug 25, 2024
1 parent bdee02d commit 02538e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export async function addItem(listPath, { itemName, daysUntilNextPurchase }) {
// NOTE: This is null because the item has just been created.
// We'll use updateItem to put a Date here when the item is purchased!
dateLastPurchased: null,
dateNextPurchased: getFutureDate(parseInt(daysUntilNextPurchase)),
dateNextPurchased: getFutureDate(daysUntilNextPurchase),
name: itemName,
totalPurchases: 0,
});
Expand Down

0 comments on commit 02538e0

Please sign in to comment.