Skip to content

Commit

Permalink
Merge pull request #1577 from ecency/feature/unable-to-reply-for-anon
Browse files Browse the repository at this point in the history
Fixed active user action while data is loading
  • Loading branch information
feruzm authored Mar 18, 2024
2 parents 65d7d38 + 07ec90e commit d680b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/components/login-required/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand All @@ -25,7 +25,7 @@ export class LoginRequired extends Component<Props> {
render() {
const { children, activeUser } = this.props;

if (activeUser) {
if (activeUser && activeUser.data.__loaded) {
return children;
}

Expand Down

0 comments on commit d680b86

Please sign in to comment.