You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Remove useless if statement
This commit is contained in:
@@ -72,10 +72,8 @@ export default class NotificationBadge extends React.PureComponent<XOR<IProps, I
|
|||||||
|
|
||||||
public componentWillUnmount() {
|
public componentWillUnmount() {
|
||||||
SettingsStore.unwatchSetting(this.countWatcherRef);
|
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>) {
|
public componentDidUpdate(prevProps: Readonly<IProps>) {
|
||||||
if (prevProps.notification) {
|
if (prevProps.notification) {
|
||||||
|
|||||||
Reference in New Issue
Block a user