Skip to content

Commit

Permalink
fix: totalDiary에서 공유하기 큐알 인식 못하는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
seocylucky committed May 13, 2024
1 parent 69603ac commit f1f2d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MyDetailDiary/MyDetailDiary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const MyDetailDiary = ({
day = parseInt(dayStr, 10);
}

const shareDiaryId = diaryId ? diaryId : isData.diaryId;
console.log(`년: ${year}, 월: ${month}, 일: ${day}`);

useEffect(() => {
Expand Down Expand Up @@ -137,7 +138,7 @@ export const MyDetailDiary = ({
{isOpenShareModal && (
<CommonModal
diarybookId={diarybookId}
diaryId={diaryId}
diaryId={shareDiaryId}
onCloseModal={() => handleCloseModal()}
/>
)}
Expand Down

0 comments on commit f1f2d3c

Please sign in to comment.