Skip to content

Commit

Permalink
Merge pull request #6542 from PrashantMangukiya/prashant-6287
Browse files Browse the repository at this point in the history
Corrected Cannot Remove Yourself banner shown again and again problem while inviting new member
  • Loading branch information
johnmlee101 committed Nov 30, 2021
2 parents 93b268f + c1d5e2d commit 52fb3ea
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 52fb3ea

Please sign in to comment.