修复主播卡片导致的崩溃bug

This commit is contained in:
yezian 2024-03-21 18:41:31 +08:00
parent 53b0685e8f
commit c834858212
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ function StreamerCard({ data }) {
style={tailwind("flex-row h-12 justify-between items-center mx-4")}
>
<View style={tailwind("flex-row")}>
{data?.tag.map((item, index) => {
{data?.tag?.map((item, index) => {
if (index > 2) return;
return (
<View
@ -168,7 +168,7 @@ function StreamerCard({ data }) {
})}
</View>
<View style={tailwind("flex-row flex-nowrap")}>
{data?.platforms.map((item, index) => {
{data?.platforms?.map((item, index) => {
if (index > 5) return;
return (
<View key={index} style={tailwind("h-5")}>