diff --git a/src/components/NoticeIcon/NoticeList.tsx b/src/components/NoticeIcon/NoticeList.tsx index f056b5b4..54e03543 100644 --- a/src/components/NoticeIcon/NoticeList.tsx +++ b/src/components/NoticeIcon/NoticeList.tsx @@ -34,7 +34,7 @@ const NoticeList: React.SFC = ({ viewMoreText, showViewMore = false, }) => { - if (data.length === 0) { + if (!data || data.length === 0) { return (