mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
remove redundant logic
This commit is contained in:
1 parent
6f1d653d54
commit
02f5cc0686
1 file changed
+1
-2
@@ -8,8 +8,7 @@
|
|||||||
const currentLocale =
|
const currentLocale =
|
||||||
locales.supported.find(
|
locales.supported.find(
|
||||||
({ locale }) =>
|
({ locale }) =>
|
||||||
locale !== locales.default &&
|
pathname === `/${locale}` || pathname.startsWith(`/${locale}/`),
|
||||||
(pathname === `/${locale}` || pathname.startsWith(`/${locale}/`)),
|
|
||||||
)?.locale ?? locales.default;
|
)?.locale ?? locales.default;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in new issue
Block a user