Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
updating for lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LoganArnett committed Oct 7, 2021
1 parent c56d6ba commit 4759b4f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/components/views/room_settings/RoomProfileSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ export default class RoomProfileSettings extends React.Component<IProps, IState>
avatarFile: null,
profileFieldsTouched: {
...this.state.profileFieldsTouched,
avatar: true
avatar: true,
},
});
};

private isSaveEnabled = () => {
return Boolean(Object.values(this.state.profileFieldsTouched).length)
}
return Boolean(Object.values(this.state.profileFieldsTouched).length);
};

private cancelProfileChanges = async (e: React.MouseEvent): Promise<void> => {
e.stopPropagation();
Expand Down Expand Up @@ -166,13 +166,14 @@ export default class RoomProfileSettings extends React.Component<IProps, IState>
this.setState({
profileFieldsTouched: {
...this.state.profileFieldsTouched,
name: false
}, });
name: false,
},
});
} else {
this.setState({
profileFieldsTouched: {
...this.state.profileFieldsTouched,
name: true
name: true,
},
});
}
Expand All @@ -184,14 +185,14 @@ export default class RoomProfileSettings extends React.Component<IProps, IState>
this.setState({
profileFieldsTouched: {
...this.state.profileFieldsTouched,
topic: false
topic: false,
},
});
} else {
this.setState({
profileFieldsTouched: {
...this.state.profileFieldsTouched,
topic: true
topic: true,
},
});
}
Expand All @@ -204,7 +205,7 @@ export default class RoomProfileSettings extends React.Component<IProps, IState>
avatarFile: null,
profileFieldsTouched: {
...this.state.profileFieldsTouched,
avatar: false
avatar: false,
},
});
return;
Expand All @@ -218,7 +219,7 @@ export default class RoomProfileSettings extends React.Component<IProps, IState>
avatarFile: file,
profileFieldsTouched: {
...this.state.profileFieldsTouched,
avatar: true
avatar: true,
},
});
};
Expand Down

0 comments on commit 4759b4f

Please sign in to comment.