We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 521dca9 commit b122667Copy full SHA for b122667
components/page-header/LanguagePicker.tsx
@@ -26,9 +26,9 @@ export const LanguagePicker = ({ variant }: Props) => {
26
// in a "denormalized" way.
27
const routerPath = router.asPath.split('#')[0]
28
29
- function rememberPreferredLanguage(option: { locale: string }) {
+ function rememberPreferredLanguage(value: string) {
30
try {
31
- Cookies.set(PREFERRED_LOCALE_COOKIE_NAME, option.locale, {
+ Cookies.set(PREFERRED_LOCALE_COOKIE_NAME, value, {
32
expires: 365,
33
secure: document.location.protocol !== 'http:',
34
})
0 commit comments