diff --git a/mobile/src/components/gak/grid.tsx b/mobile/src/components/gak/grid.tsx
index d24e4f5..1b87829 100644
--- a/mobile/src/components/gak/grid.tsx
+++ b/mobile/src/components/gak/grid.tsx
@@ -35,7 +35,7 @@ export function GakGrid({ items, dim }: { items: IndexSummary[]; dim: boolean })
className={`${CELL} ${g.active ? '' : 'opacity-55'}`}
>
{g.active && {g.rank}}
- {g.season && {g.season}}
+ {!!g.season && {g.season}}
{g.name}
diff --git a/mobile/src/components/gak/podium.tsx b/mobile/src/components/gak/podium.tsx
index 54846d0..82fbb45 100644
--- a/mobile/src/components/gak/podium.tsx
+++ b/mobile/src/components/gak/podium.tsx
@@ -48,7 +48,7 @@ export function Podium({ top, dim }: { top: IndexSummary[]; dim: boolean }) {
{g.score}
- {g.summary && {g.summary}}
+ {!!g.summary && {g.summary}}
);
})}
diff --git a/mobile/src/components/post/slides.tsx b/mobile/src/components/post/slides.tsx
index 375efd6..1f3e47c 100644
--- a/mobile/src/components/post/slides.tsx
+++ b/mobile/src/components/post/slides.tsx
@@ -170,7 +170,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) {
{slide.eyebrow}
{/* 노을 탭 히어로와 같은 순서: 결론 → 가장 붉을 때 → 쉬운 이유 */}
{slide.headline ?? slide.grade_label}
- {slide.line && {slide.line}}
+ {!!slide.line && {slide.line}}
{slide.cuts.map((c, i) => (
@@ -224,7 +224,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) {
))}
- {slide.tip && {slide.tip}}
+ {!!slide.tip && {slide.tip}}
);
if (slide.kind === 'plan') {
@@ -246,7 +246,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) {
{st.sub}
- {st.image && }
+ {!!st.image && }
))}
@@ -258,7 +258,7 @@ export function SlideView({ slide, bg }: { slide: Slide; bg: SlideBg }) {
return (
- {slide.image_credit && }
+ {!!slide.image_credit && }
{slide.eyebrow}
diff --git a/mobile/src/components/season/parts.tsx b/mobile/src/components/season/parts.tsx
index d4229f2..2519948 100644
--- a/mobile/src/components/season/parts.tsx
+++ b/mobile/src/components/season/parts.tsx
@@ -62,7 +62,7 @@ export function SeasonHead({ week: w, onPress }: { week: ResSeasonWeek; onPress:
이번 주 특집{w.start && w.end ? ` · ${dateRange(w.start, w.end)}` : ''}
{w.headline}
{poem.length > 0 && {poem.join('\n')}}
- {w.term_now && w.term_next && (
+ {!!w.term_now && !!w.term_next && (
@@ -88,7 +88,7 @@ export function ArticleRow({ article: a, onPress }: { article: ArticleSummary; o
return (
- {ARTICLE_LABEL[a.category] && (
+ {!!ARTICLE_LABEL[a.category] && (
{ARTICLE_LABEL[a.category]}
@@ -98,7 +98,7 @@ export function ArticleRow({ article: a, onPress }: { article: ArticleSummary; o
- {a.image && a.image_credit && }
+ {!!a.image && !!a.image_credit && }
);
diff --git a/mobile/src/components/sheets/article.tsx b/mobile/src/components/sheets/article.tsx
index ed193a4..8f09daf 100644
--- a/mobile/src/components/sheets/article.tsx
+++ b/mobile/src/components/sheets/article.tsx
@@ -28,7 +28,7 @@ export function ArticleSheet({ articleId, onTitle }: { articleId: number; onTitl
- {a.image && a.image_credit && }
+ {!!a.image && !!a.image_credit && }
{articleMeta(a)}
{a.title}
@@ -61,10 +61,10 @@ export function SeasonWeekSheet() {
{w.poem_lines?.join(' ')}
- {w.author && {w.author}}
+ {!!w.author && {w.author}}
)}
- {w.term_now && w.term_next && (
+ {!!w.term_now && !!w.term_next && (
지금 절기는 {w.term_now.name}({shortDay(w.term_now.day)}), 다음 절기는 {w.term_next.name}({shortDay(w.term_next.day)})예요.
diff --git a/mobile/src/components/sheets/gak.tsx b/mobile/src/components/sheets/gak.tsx
index 1bbde8f..bf99bb5 100644
--- a/mobile/src/components/sheets/gak.tsx
+++ b/mobile/src/components/sheets/gak.tsx
@@ -121,7 +121,7 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s
{g.name}
- {d.description && {d.description}}
+ {!!d.description && {d.description}}
{g.score}
@@ -194,7 +194,7 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s
))}
- {d.zero_reason && (
+ {!!d.zero_reason && (
오늘 걸린 조건: {d.zero_reason}
@@ -204,12 +204,12 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s
계산 방법: 요소 점수에 비중을 곱해 더하고, 가장 낮은 요소가 낮을수록 최대 25%까지 더 깎아요
)}
- {d.zero_rules && (
+ {!!d.zero_rules && (
점수 깎이는 조건: {d.zero_rules}
)}
- {d.limit && (
+ {!!d.limit && (
반영 못 한 것: {d.limit}