This commit is contained in:
zadit
2024-11-01 11:33:26 +07:00
parent 5a2b9b2f86
commit 32e8ebd69b
20 changed files with 812 additions and 509 deletions

View File

@@ -96,6 +96,7 @@ function App() {
if (response.status === 200) {
setShop(cafe);
setShopItems(data);
console.log(data)
// Filter out unavailable items
const filteredData = data
.map((itemType) => ({
@@ -424,6 +425,7 @@ function App() {
shopName={shop.name}
shopOwnerId={shop.ownerId}
shopItems={shopItems}
setShopItems={setShopItems}
shopClerks={shopClerks}
socket={socket}
user={user}