0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 22:52:39 +00:00

Remove unneeded brew.shareId reference

This commit is contained in:
G.Ambatte
2024-09-15 00:47:54 +12:00
parent ff19e3875e
commit 7009ef4441

View File

@@ -98,7 +98,7 @@ export function updateHistory(brew) {
if(new Date() >= new Date(storedVersion.expireAt)){ if(new Date() >= new Date(storedVersion.expireAt)){
for (let updateSlot = slot - 1; updateSlot>0; updateSlot--){ for (let updateSlot = slot - 1; updateSlot>0; updateSlot--){
// Move data from updateSlot to updateSlot + 1 // Move data from updateSlot to updateSlot + 1
updateStoredBrew({ ...history[updateSlot], shareId: brew.shareId }, updateSlot + 1); updateStoredBrew(history[updateSlot], updateSlot + 1);
}; };
// Update the most recent brew // Update the most recent brew