From b80dc68cc9ae02749c3a07954b411dc6bd23fef0 Mon Sep 17 00:00:00 2001 From: Anton Mushnin Date: Wed, 3 Apr 2024 17:22:36 +0300 Subject: [PATCH] undefined stat fix --- web/src/components/playing/DetailedStat.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 && ( <>