ok banget

This commit is contained in:
zadit
2024-10-30 03:32:48 +07:00
parent 1ecc6db645
commit 5a2b9b2f86
18 changed files with 244 additions and 130 deletions

View File

@@ -96,7 +96,6 @@ function App() {
if (response.status === 200) {
setShop(cafe);
setShopItems(data);
// Filter out unavailable items
const filteredData = data
.map((itemType) => ({
@@ -220,7 +219,7 @@ function App() {
localStorage.getItem("settings")
)
setModal("complete_account");
if (data.data.user.cafeId == shopId) {
if (data.data.user.cafeId == shopId || data.data.isTheOwner) {
const connectedGuestSides = await getConnectedGuestSides();
setGuestSides(connectedGuestSides.sessionDatas);
console.log("getting guest side");