ok
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user