Skip to content

Commit

Permalink
Corrected Cannot Remove Yourself banner shown again and again problem
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantMangukiya committed Nov 30, 2021
1 parent e02156c commit c1d5e2d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ class CheckboxWithTooltipForMobileWebAndNative extends React.Component {
this.showGrowlOrTriggerOnPress = this.showGrowlOrTriggerOnPress.bind(this);
}

componentDidUpdate() {
componentDidUpdate(prevProps) {
if (!this.props.toggleTooltip) {
return;
}

Growl.show(this.props.text, this.props.growlType, 3000);
if (prevProps.toggleTooltip !== this.props.toggleTooltip) {
Growl.show(this.props.text, this.props.growlType, 3000);
}
}

/**
Expand Down

0 comments on commit c1d5e2d

Please sign in to comment.