Skip to content

Commit b122667

Browse files
authored
Picker sends just the selected value (github#29191)
1 parent 521dca9 commit b122667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/page-header/LanguagePicker.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export const LanguagePicker = ({ variant }: Props) => {
2626
// in a "denormalized" way.
2727
const routerPath = router.asPath.split('#')[0]
2828

29-
function rememberPreferredLanguage(option: { locale: string }) {
29+
function rememberPreferredLanguage(value: string) {
3030
try {
31-
Cookies.set(PREFERRED_LOCALE_COOKIE_NAME, option.locale, {
31+
Cookies.set(PREFERRED_LOCALE_COOKIE_NAME, value, {
3232
expires: 365,
3333
secure: document.location.protocol !== 'http:',
3434
})

0 commit comments

Comments
 (0)