diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index b6d010b..63ddec3 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -390,7 +390,7 @@ export default function HomeScreen() { awayTeamName: item.event_away_team, homeTeamLogo: item.home_team_logo || "", awayTeamLogo: item.away_team_logo || "", - scoreText: item.event_halftime_result || "0 - 0", + scoreText: item.event_final_result || item.event_halftime_result || "0 - 0", fav: false, sportId: sportId, isLive: true, diff --git a/app/(tabs)/live.tsx b/app/(tabs)/live.tsx index df4659a..a577702 100644 --- a/app/(tabs)/live.tsx +++ b/app/(tabs)/live.tsx @@ -66,7 +66,7 @@ export default function LiveScreen() { homeTeamLogo: item.home_team_logo, awayTeamLogo: item.away_team_logo, meta: item.event_status, - scoreText: item.event_final_result || "0 - 0", + scoreText: item.event_final_result || item.event_halftime_result || "0 - 0", fav: false, leagueId: item.league_key, sportId: state.selectedSportId ?? undefined, diff --git a/app/live-detail/[id].tsx b/app/live-detail/[id].tsx index cabe529..7c7b116 100644 --- a/app/live-detail/[id].tsx +++ b/app/live-detail/[id].tsx @@ -90,19 +90,23 @@ export default function LiveDetailScreen() { eventType: "", eventToss: "", eventManOfMatch: "", - scores: match.scores, - stats: match.statistics, + scores: Array.isArray(match.scores) && match.scores.length > 0 && 'type' in match.scores[0] + ? match.scores as { type: string; home: string; away: string; }[] + : undefined, + stats: Array.isArray(match.statistics) && match.statistics.length > 0 && 'type' in match.statistics[0] + ? match.statistics as { type: string; home: string; away: string; }[] + : undefined, players: match.player_statistics ? { - home_team: (match.player_statistics.home_team || []).map((p) => ({ - ...p, - player_oncourt: p.player_oncourt || undefined, - })), - away_team: (match.player_statistics.away_team || []).map((p) => ({ - ...p, - player_oncourt: p.player_oncourt || undefined, - })), - } + home_team: (match.player_statistics.home_team || []).map((p) => ({ + ...p, + player_oncourt: p.player_oncourt || undefined, + })), + away_team: (match.player_statistics.away_team || []).map((p) => ({ + ...p, + player_oncourt: p.player_oncourt || undefined, + })), + } : undefined, }, }; diff --git a/components/live-detail/live-score-header.tsx b/components/live-detail/live-score-header.tsx index c69d854..4b06f97 100644 --- a/components/live-detail/live-score-header.tsx +++ b/components/live-detail/live-score-header.tsx @@ -437,7 +437,7 @@ const styles = StyleSheet.create({ }, scoreValue: { color: "#000", - fontSize: 25, + fontSize: 20, fontWeight: "700", lineHeight: 30, letterSpacing: 1, diff --git a/components/match-card-league.tsx b/components/match-card-league.tsx index b1ca1d8..b0ff3b9 100644 --- a/components/match-card-league.tsx +++ b/components/match-card-league.tsx @@ -386,7 +386,7 @@ const styles = StyleSheet.create({ gap: 6, }, scoreBox: { - width: 36, + width: 45, height: 54, borderRadius: 8, borderWidth: 1.5, @@ -416,7 +416,7 @@ const styles = StyleSheet.create({ color: "#FF9500", }, scoreBoxPlaceholder: { - width: 36, + width: 45, height: 54, }, favoriteButton: { diff --git a/components/match-card.tsx b/components/match-card.tsx index 38a2988..0e1d3bb 100644 --- a/components/match-card.tsx +++ b/components/match-card.tsx @@ -709,7 +709,7 @@ const styles = StyleSheet.create({ alignItems: "center", }, scoreContainer: { - width: 25, + width: 35, alignItems: "center", }, extraStatsContainer: { @@ -722,7 +722,7 @@ const styles = StyleSheet.create({ alignItems: "center", }, scoreBox: { - width: 28, + width: 35, height: 55, borderRadius: 8, borderWidth: 0.3, @@ -751,7 +751,7 @@ const styles = StyleSheet.create({ backgroundColor: "rgba(0,0,0,0.06)", }, scoreBoxPlaceholder: { - width: 28, + width: 35, height: 48, }, cardsInline: {