remove redundant logic

This commit is contained in:
tresabhi committed 2026-10-07 17:00:47 -05:00
1 parent 6f1d653d54
commit 02f5cc0686
1 file changed
+1 -2
@@ -8,8 +8,7 @@
const currentLocale =
locales.supported.find(
({ locale }) =>
locale !== locales.default &&
(pathname === `/${locale}` || pathname.startsWith(`/${locale}/`)),
pathname === `/${locale}` || pathname.startsWith(`/${locale}/`),
)?.locale ?? locales.default;
if (