Skip to content

Commit

Permalink
Re-render the room name when it changes
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-marcellini committed Jan 21, 2022
1 parent 3e15e90 commit 173bc34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/home/sidebar/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,10 @@ export default withLocalize(memo(OptionRow, (prevProps, nextProps) => {
return false;
}

// Re-render when the text changes
if (prevProps.option.text !== nextProps.option.text) {
return false;
}

return true;
}));

0 comments on commit 173bc34

Please sign in to comment.