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
@@ -48,7 +48,7 @@ export function Podium({ top, dim }: { top: IndexSummary[]; dim: boolean }) {
|
||||
</Text>
|
||||
</View>
|
||||
<Text className="font-bagel text-[30px] leading-[32px] text-orange">{g.score}</Text>
|
||||
{g.summary && <Text className="text-center text-[11.5px] font-semibold text-ink2">{g.summary}</Text>}
|
||||
{!!g.summary && <Text className="text-center text-[11.5px] font-semibold text-ink2">{g.summary}</Text>}
|
||||
</Pressable>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in new issue
Block a user