mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Remove useless if statement
This commit is contained in:
parent
593b472e50
commit
8e7b60b11e
1 changed files with 1 additions and 3 deletions
|
@ -72,9 +72,7 @@ export default class NotificationBadge extends React.PureComponent<XOR<IProps, I
|
|||
|
||||
public componentWillUnmount() {
|
||||
SettingsStore.unwatchSetting(this.countWatcherRef);
|
||||
if (this.props.notification) {
|
||||
this.props.notification.off(NOTIFICATION_STATE_UPDATE, this.onNotificationUpdate);
|
||||
}
|
||||
this.props.notification.off(NOTIFICATION_STATE_UPDATE, this.onNotificationUpdate);
|
||||
}
|
||||
|
||||
public componentDidUpdate(prevProps: Readonly<IProps>) {
|
||||
|
|
Loading…
Reference in a new issue