Skip to content

Commit

Permalink
Merge branch 'release' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
olasunkanmi-SE committed Jun 10, 2023
2 parents 74dd407 + 441d88e commit 4fd1714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/contexts/shoppingCartContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ export const ShoppingCartProvider = ({ children }: shoppingCartProviderProps) =>
};

const addMenuToCart = (menu: IMenuData) => {
const id = crypto.randomBytes(16).toString("hex");

console.log(id);
if (!state.menus.length) {
state.menus = menuToMenuStateMapper(menu);
state.quantity = 1;
Expand Down

0 comments on commit 4fd1714

Please sign in to comment.