Skip to content

Commit

Permalink
fix: 현재의 모임 이름 대신 '삼봤드의 모험' 이란 상수값이 들어가있는 오류 해결 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 authored Aug 26, 2024
1 parent 461ba2e commit 42ca7a2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useParams } from 'next/navigation';
import { useState } from 'react';

import { KakaoShareModal, getWebDomain } from '@/common';
import { useGetMeetingInfo } from '@/home/common/apis/queries/useGetMeetingName';

import { ShareGroupBackground } from '../../../../assets/ShareGroupBackground';
import { ShareGroupCheckIcon } from '../../../../assets/ShareGroupCheckIcon';
Expand All @@ -28,12 +29,15 @@ export const CurrentRelayQuestionCountContainer = () => {
const [isOpenModal, setIsOpenModal] = useState<boolean>(false);

const { activeQuestion } = useActiveQuestionQuery(Number(meetingId));
const { data } = useGetMeetingInfo({});

const handleOpenShare = () => {
setIsOpenModal(true);
};

if (!activeQuestion) return;
if (!activeQuestion || !data) return;

const currentMeetingName = data.meetings.find(({ meetingId }) => meetingId === Number(meetingId))?.name;

return (
<>
Expand All @@ -50,7 +54,7 @@ export const CurrentRelayQuestionCountContainer = () => {
fontWeight="regular"
style={{ textAlign: 'center', marginTop: size['6xs'] }}
>
친해지고 싶은 삼봤드의 모험 모임원들에게 <br />
친해지고 싶은 {currentMeetingName} 모임원들에게 <br />
질문을 공유해 보세요
</Txt>
</div>
Expand Down

0 comments on commit 42ca7a2

Please sign in to comment.