🐛(frontend) fix fallback redirect to always go to /mail-domains/
The ternary was incorrectly inverted, causing users to be sent to /teams/ when TEAMS_DISPLAY was off. Simplify to always redirect to /mail-domains/ as the fallback.
This commit is contained in:
@@ -29,7 +29,7 @@ const Page: NextPageWithLayout = () => {
|
||||
}
|
||||
|
||||
// Fallback to the default route according to global config
|
||||
router.push(config?.FEATURES.TEAMS_DISPLAY ? '/mail-domains/' : '/teams/');
|
||||
router.push('/mail-domains/');
|
||||
}, [config?.FEATURES.TEAMS_DISPLAY, userData, router]);
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user