Fix warning about promise being ignored

This commit is contained in:
Deluan 2021-05-03 13:38:34 -04:00 committed by Joe Stump
parent d79f03cde1
commit ee0d28797b
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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