Skip to content

Commit

Permalink
updated naming of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
eonflower committed Mar 11, 2024
1 parent 7532944 commit ec93b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export async function updateItem(
export async function uncheckItem(
listPath,
itemId,
dateLastPurchased,
previousLastPurchased,
previousNextPurchased,
) {
// Create a reference to the item document in the specified shopping list
Expand All @@ -240,7 +240,7 @@ export async function uncheckItem(
if (itemData.dateLastPurchased) {
// Update the item document with the new information
updateDoc(itemDocRef, {
dateLastPurchased,
dateLastPurchased: previousLastPurchased,
dateNextPurchased: previousNextPurchased,
totalPurchases: newTotalPurchases,
});
Expand Down

0 comments on commit ec93b55

Please sign in to comment.