fix: 앱이 켜자마자 꺼지던 것 — 서버가 빈 문자열(노을 line 등)을 주면 '&&'가 빈 글자를 View 안에 그려 안드로이드에서 'Text strings must be rendered within a <Text>'로 종료됨. 문자열 조건을 !!로 감쌈
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
fcc7ed804c
commit
709dcf742e
6 files changed
+16
-16
No files matched your search
@@ -121,7 +121,7 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s
|
||||
<Ic name={g.icon} size={58} />
|
||||
<View className="flex-1">
|
||||
<Text className="font-jua text-[22px] text-ink">{g.name}</Text>
|
||||
{d.description && <Text className="mt-0.5 text-[13.5px] font-semibold text-ink2">{d.description}</Text>}
|
||||
{!!d.description && <Text className="mt-0.5 text-[13.5px] font-semibold text-ink2">{d.description}</Text>}
|
||||
</View>
|
||||
<Text className={`font-bagel text-[42px] ${g.active ? 'text-orange' : 'text-ink3'}`}>{g.score}</Text>
|
||||
</View>
|
||||
@@ -194,7 +194,7 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s
|
||||
))}
|
||||
</View>
|
||||
<View className="mt-3.5 gap-1.5">
|
||||
{d.zero_reason && (
|
||||
{!!d.zero_reason && (
|
||||
<Text className="text-[13px] font-semibold text-ink2">
|
||||
<Text className="font-bold text-heart">오늘 걸린 조건:</Text> {d.zero_reason}
|
||||
</Text>
|
||||
@@ -204,12 +204,12 @@ export function GakSheet({ indexId, onTitle }: { indexId: number; onTitle: (t: s
|
||||
<Text className="font-bold text-ink">계산 방법:</Text> 요소 점수에 비중을 곱해 더하고, 가장 낮은 요소가 낮을수록 최대 25%까지 더 깎아요
|
||||
</Text>
|
||||
)}
|
||||
{d.zero_rules && (
|
||||
{!!d.zero_rules && (
|
||||
<Text className="text-[13px] font-semibold text-ink2">
|
||||
<Text className="font-bold text-ink">점수 깎이는 조건:</Text> {d.zero_rules}
|
||||
</Text>
|
||||
)}
|
||||
{d.limit && (
|
||||
{!!d.limit && (
|
||||
<Text className="text-[13px] font-semibold text-ink2">
|
||||
<Text className="font-bold text-ink">반영 못 한 것:</Text> {d.limit}
|
||||
</Text>
|
||||
|
||||
Reference in new issue
Block a user