Fix basket loading and verifying on page load

Update go mod files
This commit is contained in:
Michał Gdula 2024-05-04 17:58:48 +01:00
parent 5bcebe2011
commit 7d8d19a6e9
4 changed files with 33 additions and 26 deletions

View file

@ -130,6 +130,7 @@ export async function postVerifyCart(
Object.entries(currentCartData).forEach(([key, value]) => {
verifiedItems.forEach((verifiedItem: Item) => {
if (verifiedItem.uuid === key) {
console.log(verifiedItem, key);
newCartData[key] = {
uuid: value.uuid,
amount: value.amount,