Skip to content

Commit 00a0028

Browse files
authored
fix: 날씨 '알 수 없음' 수정
1 parent 9e37e9e commit 00a0028

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/post-detail.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ export default function EventDetailModal({ postId, isOpen, onClose, onLogin }: E
776776
<p className="text-lg font-semibold text-gray-900">{getGenderText(post.gender)}</p>
777777
</div>
778778
</div>
779-
{/* 날씨 - weather가 있고 null이 아닐 때만 표시 */}
780-
{post.weather && post.weather.weather && post.weather.weather !== '-' && (
779+
{/* 날씨 - weather가 1, 3, 4 중 하나일 때만 표시 */}
780+
{post.weather && post.weather.weather && ['1', '3', '4'].includes(post.weather.weather) && (
781781
<div className="flex items-center gap-4 md:col-span-2">
782782
<div className="w-12 h-12 bg-sky-100 rounded-2xl flex items-center justify-center">
783783
<span className="text-2xl">{getWeatherIcon(post.weather.weather)}</span>
@@ -792,7 +792,7 @@ export default function EventDetailModal({ postId, isOpen, onClose, onLogin }: E
792792
</span>
793793
)}
794794
{post.weather.humidity && post.weather.humidity !== '-' && (
795-
<span className="text-sm text-gray-600 bg-gray-200/70 px-2 py-1 rounded-lg">
795+
<span className="text-sm text-gray-600 bg-gray-200/50 px-2 py-1 rounded-lg">
796796
습도 {post.weather.humidity}%
797797
</span>
798798
)}

0 commit comments

Comments
 (0)