Skip to content

Commit

Permalink
fix(language-menu): use consistent none value
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Sep 25, 2024
1 parent e3286e7 commit 2c6e959
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function LocaleRedirectSetting() {
maxAge: 60 * 60 * 24 * 365 * 3,
});
setPreferredLocale(locale);
gleanClick(`${LANGUAGE_REMEMBER}: ${oldValue} -> ${locale}`);
gleanClick(`${LANGUAGE_REMEMBER}: ${oldValue ?? 0} -> ${locale}`);
} else {
deleteCookie(PREFERRED_LOCALE_COOKIE_NAME);
setPreferredLocale(undefined);
Expand Down

0 comments on commit 2c6e959

Please sign in to comment.