diff --git a/web/src/components/playing/DetailedStat.tsx b/web/src/components/playing/DetailedStat.tsx index 065f4410..45c69eea 100644 --- a/web/src/components/playing/DetailedStat.tsx +++ b/web/src/components/playing/DetailedStat.tsx @@ -76,7 +76,7 @@ const DetailedStat = ({ stats, isPitcher }: { stats: PlayerStats; isPitcher: boo
season statistics
- {isPitcher && ( + {isPitcher && stats.points_data.pitching_data && ( <> @@ -97,7 +97,7 @@ const DetailedStat = ({ stats, isPitcher }: { stats: PlayerStats; isPitcher: boo /> )} - {!isPitcher && ( + {!isPitcher && stats.points_data.batting_data && ( <>