ChatPageMain: allow switching chats before onboarding

This commit is contained in:
Alex Gleason 2022-09-19 14:19:46 -05:00
parent 6ce7c0a8cb
commit e42f0bc9b0
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -58,7 +58,7 @@ const ChatPageMain = () => {
const handleReportChat = () => dispatch(initReport(chat?.account as any));
if (!account?.chats_onboarded) {
if (!chat && !account?.chats_onboarded) {
return (
<Welcome />
);