Skip to content

Commit

Permalink
chore: 나가기 시 초기 UI 노출
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimkyungmin123 committed May 25, 2022
1 parent 04acafa commit 84f1d5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const Chat: NextPage = () => {
);

mutateChatData();

useEffect(() => {
if (!user || !currChatUser) return;
if (currentChatRoomId) {
Expand Down Expand Up @@ -179,7 +180,7 @@ const Chat: NextPage = () => {
</div>
<div className={styles.messageform}>
<div className={styles.encourageChat}>
{!isModalOpen && !currChatUser && <NonChatZone />}{' '}
{!isModalOpen && !messages && <NonChatZone />}{' '}
</div>
<div className={styles.chatDelete}>
{currChatUser && messages && (
Expand Down

0 comments on commit 84f1d5b

Please sign in to comment.