From 07ec90edd717e3d58b58ee98fdef87b81a8e335b Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Sun, 17 Mar 2024 22:07:11 +0600 Subject: [PATCH] Fixed active user action while data is loading --- src/common/components/login-required/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/components/login-required/index.tsx b/src/common/components/login-required/index.tsx index d1b4f1c4f1b..ee2b14f980f 100644 --- a/src/common/components/login-required/index.tsx +++ b/src/common/components/login-required/index.tsx @@ -3,7 +3,7 @@ import React, { Component } from "react"; import { User } from "../../store/users/types"; import { Account } from "../../store/accounts/types"; import { ActiveUser } from "../../store/active-user/types"; -import { UI, ToggleType } from "../../store/ui/types"; +import { ToggleType, UI } from "../../store/ui/types"; interface Props { users: User[]; @@ -25,7 +25,7 @@ export class LoginRequired extends Component { render() { const { children, activeUser } = this.props; - if (activeUser) { + if (activeUser && activeUser.data.__loaded) { return children; }