From ec93b558af11224ebcff9fef8f363516144145c4 Mon Sep 17 00:00:00 2001 From: eonflower Date: Mon, 11 Mar 2024 16:58:00 -0700 Subject: [PATCH] updated naming of parameters --- src/api/firebase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/firebase.js b/src/api/firebase.js index 649bc35..81a64cc 100644 --- a/src/api/firebase.js +++ b/src/api/firebase.js @@ -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 @@ -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, });