Skip to content

Commit

Permalink
fix(UI): color-coding of save-status in reaction detail card #2306
Browse files Browse the repository at this point in the history
Make guard in componentDidUpdate less specific 
so that the card header color change back from light-blue to dark-blue upon saving changes.

(ref #2196)
  • Loading branch information
JanCBrammer authored Jan 23, 2025
1 parent a955344 commit babc94f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class ReactionDetails extends Component {

componentDidUpdate(prevProps) {
const { reaction } = this.props;
if (reaction.id !== prevProps.reaction.id) {
if (reaction !== prevProps.reaction) {
this.setState({ reaction });
}
}
Expand Down

0 comments on commit babc94f

Please sign in to comment.