Fix warning about promise being ignored

This commit is contained in:
Deluan 2021-05-03 13:38:34 -04:00
parent 7feda4bea4
commit c33ebabde8
1 changed files with 3 additions and 2 deletions

View File

@ -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)
})
}}
/>
)