Skip to content

Commit 2d1fc99

Browse files
authored
Merge pull request #246 from boostcampwm-2024/feature/host-close
fix: 방장 종료창 노출 조건 추가
2 parents 9495fed + e05d8bb commit 2d1fc99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/frontend/src/blocks/QuizZone/QuizZoneLobby.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import CustomAlert from '@/components/common/CustomAlert';
44
import TextCopy from '@/components/common/TextCopy';
55
import Typography from '@/components/common/Typogrpahy';
66
import { useNavigate } from 'react-router-dom';
7-
import { QuizZone, ChatMessage } from '@/types/quizZone.types';
7+
import { ChatMessage, QuizZone } from '@/types/quizZone.types';
88
import PlayersGrid from '@/components/common/PlayersGrid';
99
import TooltipWrapper from '@/components/common/TooltipWrapper';
1010
import { cn } from '@/lib/utils';

apps/frontend/src/pages/QuizZonePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const QuizZoneContent = () => {
132132
handleConfirm={() => initQuizZone()}
133133
/>
134134
</AlertDialog>
135-
<AlertDialog open={isClose}>
135+
<AlertDialog open={quizZoneState.stage === 'LOBBY' && isClose}>
136136
<CustomAlertDialogContent
137137
title={'퀴즈존 종료'}
138138
description={'방장이 퀴즈존을 떠나 퀴즈존이 삭제되었습니다.'}

0 commit comments

Comments
 (0)