Fix warning about promise being ignored
This commit is contained in:
parent
7feda4bea4
commit
c33ebabde8
1 changed files with 3 additions and 2 deletions
|
|
@ -67,8 +67,9 @@ const SelectLanguage = (props) => {
|
||||||
openInNewTab(docsUrl('/docs/developers/translations/'))
|
openInNewTab(docsUrl('/docs/developers/translations/'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
setLocale(event.target.value)
|
setLocale(event.target.value).then(() => {
|
||||||
localStorage.setItem('locale', event.target.value)
|
localStorage.setItem('locale', event.target.value)
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue