Fix linter
This commit is contained in:
parent
2e1d5aa67b
commit
800b3f1424
2 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,8 @@ export default class ChangeAvatar extends React.Component<IProps, IState> {
|
|||
}
|
||||
|
||||
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
|
||||
public UNSAFE_componentWillReceiveProps(newProps): void { // eslint-disable-line camelcase
|
||||
// eslint-disable-next-line
|
||||
public UNSAFE_componentWillReceiveProps(newProps): void {
|
||||
if (this.avatarSet) {
|
||||
// don't clobber what the user has just set
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue