Chat Report Panel: Fix error when no chat is present (#3319)

This commit is contained in:
Alexander Zinchuk 2023-06-16 12:45:01 +02:00
parent 9789760e8a
commit 2d7d0ee3c9

View File

@ -90,7 +90,7 @@ const ChatReportPanel: FC<OwnProps & StateProps> = ({
}
});
if (!settings) {
if (!settings || (!chat && !user)) {
return undefined;
}