Skip to content

Commit

Permalink
remove crypto declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
olasunkanmi-SE committed Jun 10, 2023
1 parent 0e559f8 commit a03c1f1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/src/contexts/shoppingCartContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ 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 a03c1f1

Please sign in to comment.