Fix warning about promise being ignored
This commit is contained in:
parent
7feda4bea4
commit
c33ebabde8
|
@ -67,8 +67,9 @@ const SelectLanguage = (props) => {
|
|||
openInNewTab(docsUrl('/docs/developers/translations/'))
|
||||
return
|
||||
}
|
||||
setLocale(event.target.value)
|
||||
localStorage.setItem('locale', event.target.value)
|
||||
setLocale(event.target.value).then(() => {
|
||||
localStorage.setItem('locale', event.target.value)
|
||||
})
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue