Skip to content

Commit

Permalink
Merge pull request #402 from depromeet/hotfix/391/EmptyItem
Browse files Browse the repository at this point in the history
분석 무한 로딩 버그 수정
  • Loading branch information
sean2337 authored Sep 14, 2024
2 parents 7b30346 + 74f00b4 commit 7483545
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const RetrospectAnalysisPage = () => {
const retrospectId = queryParams.get("retrospectId") as string;
const { data, isLoading } = useGetAnalysisAnswer({ spaceId: spaceId, retrospectId: retrospectId });
const { data: spaceInfo } = useApiGetSpacePrivate(Number(spaceId));
let pendingPeopleCnt;
let pendingPeopleCnt = 0;

if (spaceInfo && data) {
pendingPeopleCnt = spaceInfo.memberCount - data.individuals.length;
Expand All @@ -53,7 +53,7 @@ export const RetrospectAnalysisPage = () => {
</Fragment>
}
>
{isLoading || !pendingPeopleCnt ? (
{isLoading ? (
<LoadingModal />
) : !data || data.individuals.length === 0 ? (
<EmptyList icon={"ic_clock"} message={"제출된 회고가 없어요"} />
Expand Down

0 comments on commit 7483545

Please sign in to comment.