Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lesson 14 I'm not seeing my checkout items on the console #152

Open
Georgeikani opened this issue Nov 20, 2024 · 1 comment
Open

lesson 14 I'm not seeing my checkout items on the console #152

Georgeikani opened this issue Nov 20, 2024 · 1 comment

Comments

@Georgeikani
Copy link

import {cart} from '../script/cart.js';
import { vendor } from '../script/product.js';

cart.forEach((cartItem) =>{

const productId = cartItem.productId;

let matchingItems;

vendor.forEach((product) =>{
if(product.id === productId){
matchingItems = product;
}
});

console.log(matchingItems);
code doesnt appear on the console and no error is recorded.

@Georgeikani
Copy link
Author

This has been sorted i forgot to put the script tag below checkout.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant