Skip to content

Commit

Permalink
validate if preferred locale changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 18, 2023
1 parent e9f4cd3 commit b545c93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class WorkspaceMembersPage extends React.Component {
}

componentDidUpdate(prevProps) {
if (prevProps.preferredLocale !== this.props.preferredLocale) {
this.validate();
}

const isReconnecting = prevProps.network.isOffline && !this.props.network.isOffline;
if (!isReconnecting) {
return;
Expand Down

0 comments on commit b545c93

Please sign in to comment.