Remove useless if statement

This commit is contained in:
Travis Ralston 2020-07-24 14:07:37 -06:00
parent 593b472e50
commit 8e7b60b11e

View file

@ -72,10 +72,8 @@ 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);
}
}
public componentDidUpdate(prevProps: Readonly<IProps>) {
if (prevProps.notification) {