Skip to content

Commit

Permalink
fix: unmount시 기존의 태그로 변경되도록 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Oct 10, 2024
1 parent 474aa8e commit 0fd802e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/pages/EventPage/EventPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ const EventPageLayout = () => {
};

useEffect(() => {
console.log('mount');
updateMetaTag('og:title', `행동대장이 "${eventSummary.eventName}"에 대한 정산을 요청했어요`);

return () => {
console.log('unmount');
updateMetaTag('og:title', '행동대장 - 쉽고 빠른 모임 정산 및 송금 서비스');
};
}, []);
Expand Down

0 comments on commit 0fd802e

Please sign in to comment.