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

Change navigationCallback function #34

Open
Chrstjan opened this issue Mar 1, 2024 · 1 comment
Open

Change navigationCallback function #34

Chrstjan opened this issue Mar 1, 2024 · 1 comment
Assignees
Labels
JavaScript JavaScript Production

Comments

@Chrstjan
Copy link
Owner

Chrstjan commented Mar 1, 2024

Change the navigationCallback function

The functions should

  • Move the code in the else statement into it's own block of code outside
  • Change the code in the allProduct.forEach code so that when the user clicks on a sup category it send the subcategories array to the clickedSubCategoryArray that gets sent to the buildCategoryCard function
@Chrstjan Chrstjan added the JavaScript JavaScript Production label Mar 1, 2024
@Chrstjan Chrstjan self-assigned this Mar 1, 2024
@Chrstjan
Copy link
Owner Author

Chrstjan commented Mar 1, 2024

Fixed the error with all products not working

moved the code into the else statement again

Chrstjan added a commit that referenced this issue Mar 1, 2024
See comment in issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JavaScript JavaScript Production
Projects
None yet
Development

No branches or pull requests

1 participant