Skip to content

Commit ad4cecb

Browse files
author
김준서 Junseo Kim
authored
Merge pull request #414 from Moadong/fix/#413-prevent-crash-when-socialLinks-undefined
[fix] SnsLinkIcons 컴포넌트에서 apiSocialLinks가 없을 경우 null 반환 추가
2 parents 0cff80b + c918397 commit ad4cecb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/pages/ClubDetailPage/components/SnsLinkIcons/SnsLinkIcons.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ interface SnsLinkIconsProps {
88
}
99

1010
const SnsLinkIcons = ({ apiSocialLinks }: SnsLinkIconsProps) => {
11+
if (!apiSocialLinks) return null;
1112
return (
1213
<Styled.SnsIconGroup>
1314
{Object.entries(apiSocialLinks).map(([platform, url]) => {

0 commit comments

Comments
 (0)