auth replace
This commit is contained in:
@@ -90,7 +90,7 @@ const CartSummary = () => {
|
|||||||
if (!isSuccess) {
|
if (!isSuccess) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const redirectUrl = encodeURIComponent(pathname);
|
const redirectUrl = encodeURIComponent(pathname);
|
||||||
router.push(`/${name}/auth?redirect=${redirectUrl}`);
|
router.replace(`/${name}/auth?redirect=${redirectUrl}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ function BottomNavBar({ onPagerClick }: BottomNavBarProps) {
|
|||||||
} else {
|
} else {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
toast('ابتدا لاگین کنید', 'error');
|
toast('ابتدا لاگین کنید', 'error');
|
||||||
router.push(`/${name}/auth`);
|
router.replace(`/${name}/auth`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user