This commit is contained in:
zadit
2024-12-13 21:29:10 +07:00
parent 198d0b3053
commit b88b9ce7ba
18 changed files with 195 additions and 66 deletions

View File

@@ -89,16 +89,6 @@ function CafePage({
checkWelcomePageConfig();
}, [welcomePageConfig]);
useEffect(() => {
if (user.cafeId != null && user.cafeId !== shopId) {
// Preserve existing query parameters
const currentParams = new URLSearchParams(location.search).toString();
// Navigate to the new cafeId while keeping existing params
navigate(`/${user.cafeId}?${currentParams}`, { replace: true });
}
}, [user, shopId]);
useEffect(() => {
function fetchData() {