fix: undef window

This commit is contained in:
TrèsAbhi committed 2024-05-02 18:08:58 -05:00
1 parent 352cb70830
commit 26ea06b091
1 file changed
+6 -1
+6 -1
View File
@@ -211,7 +211,12 @@ export default function Navbar() {
{REGIONS.map((region) => (
<LinkRadix
key={region}
href={authURL(region, location.href)}
href={authURL(
region,
typeof window === 'undefined'
? undefined
: location.href,
)}
>
{UNLOCALIZED_REGION_NAMES[region]}
</LinkRadix>