Skip to content

Commit

Permalink
return a blank page if nothing set to avoid bugs
Browse files Browse the repository at this point in the history
Signed-off-by: cbh778899 <[email protected]>
  • Loading branch information
cbh778899 committed Oct 15, 2024
1 parent 2a67b8a commit 2de5472
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/chat/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export default function Chat() {
}, [chat])

return (
settings.current ?
<div className="chat">
<Tickets
selectChat={selectChat} current_chat={chat}
Expand All @@ -155,6 +156,7 @@ export default function Chat() {
resetRequestDelete={resetRequestDelete}
conv_to_delete={conv_to_delete}
/>
</div>
</div> :
<></>
)
}

0 comments on commit 2de5472

Please sign in to comment.