Added a boolean function + conditional rendering to disable the merch store. Also refactored the merch.ts functions, particularly by making the cents field of Price non-optional. I also used a map for fast price lookup. Finally, fixed a bug related to pagination, where all crewnecks (but one?) were displaying a price of 0 when in the cart. This only happened to the last page of products (as viewed in the stripe dashboard), prompting the look into pagination.
Added a boolean function + conditional rendering to disable the merch store. Also refactored the merch.ts functions, particularly by making the cents field of Price non-optional. I also used a map for fast price lookup. Finally, fixed a bug related to pagination, where all crewnecks (but one?) were displaying a price of 0 when in the cart. This only happened to the last page of products (as viewed in the stripe dashboard), prompting the look into pagination.