Fix redirect

This commit is contained in:
2024-12-03 13:32:25 +08:00
parent 304476b367
commit dc69a67a84
7 changed files with 37 additions and 27 deletions

View File

@@ -32,13 +32,13 @@ export default function HomeView({
const [countLoadNtf, setCountLoadNtf] = useAtom(gs_count_ntf);
const userRoleId = dataUser.masterUserRoleId;
useShallowEffect(() => {
if (userRoleId === "2" || userRoleId === "3") {
setTimeout(() => {
router.push("/waiting-room", { scroll: false });
}, 1000);
}
}, [userRoleId]);
// useShallowEffect(() => {
// if (userRoleId === "2" || userRoleId === "3") {
// setTimeout(() => {
// router.push("/waiting-room", { scroll: false });
// }, 1000);
// }
// }, [userRoleId]);
useShallowEffect(() => {
onLoadNotifikasi({