Skip to content

Commit

Permalink
Merge pull request #2 from S-HENR/translator-service
Browse files Browse the repository at this point in the history
fix : prefferedLang not setting correctly
  • Loading branch information
AppliNH authored Jan 14, 2021
2 parents 2f072c8 + 01063ee commit 0b13d2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ class HomePage extends React.Component {

handleChange = async (event) => {
this.setState({loading: true})
await this.translateText(event.target.value)
localStorage.setItem('preferredLang', event.target.value)
await this.translateText(event.target.value)

}

componentDidMount() {
Expand Down

0 comments on commit 0b13d2d

Please sign in to comment.