Skip to content

Commit

Permalink
🐛 fix : 초기 게스트 상태로 진입 시 화면 최상단 UI 미출력 오류 해결 #127
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMirror21 committed Nov 25, 2024
1 parent d9819fb commit 7b162ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Home/HomeHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const HomeHeader = () => {
return isRead;
};

if (!data?.success) return <></>;

return (
<section className="w-full pt-[3.125rem] pb-[1rem] px-[1.5rem] bg-[#FEF387]">
<p className="pb-[0.375rem] body-2 text-[#37383C9C]">
Expand All @@ -40,7 +38,7 @@ const HomeHeader = () => {
>
<AlarmIcon />
{/* 알람이 있을 때만 표시하기 */}
{isReadAlarms(data?.data?.notification_list) ? (
{data?.success && isReadAlarms(data?.data?.notification_list) ? (
<div className="absolute top-[0.3rem] right-[0.4rem] w-[0.438rem] h-[0.438rem] rounded-full bg-[#FF6F61]"></div>
) : (
<></>
Expand Down

0 comments on commit 7b162ad

Please sign in to comment.