🐛(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:
Louis
2026-03-02 11:04:40 +01:00
parent 46ba75b119
commit ed07eecad4
+1 -1
View File
@@ -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;