mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
Remove excessive null check
Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
@@ -120,7 +120,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||||||
* should not be done when the space switch is done implicitly due to another event like switching room.
|
* should not be done when the space switch is done implicitly due to another event like switching room.
|
||||||
*/
|
*/
|
||||||
public async setActiveSpace(space: Room | null, contextSwitch = true) {
|
public async setActiveSpace(space: Room | null, contextSwitch = true) {
|
||||||
if (space && !space?.isSpaceRoom()) return;
|
if (!space?.isSpaceRoom()) return;
|
||||||
if (space === this.activeSpace) {
|
if (space === this.activeSpace) {
|
||||||
const notificationState = this.getNotificationState(space ? space.roomId : HOME_SPACE);
|
const notificationState = this.getNotificationState(space ? space.roomId : HOME_SPACE);
|
||||||
if (notificationState.count) {
|
if (notificationState.count) {
|
||||||
|
|||||||
Reference in New Issue
Block a user