Skip to content

Commit

Permalink
hiding score after pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Mushnin committed Apr 3, 2024
1 parent a109d28 commit 958b082
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions web/src/components/atbat/AtBatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,15 @@ const AtBatView: React.FC = () => {
pitch={atBatState.data.atBat.pitches[currentSessionIdx]}
/>
)}
{atBatState.data && isBigView && (
<ScoreForDesktop
atBat={atBatState.data.atBat}
pitch={atBatState.data.atBat.pitches[currentSessionIdx]}
/>
)}
{atBatState.data &&
isBigView &&
atBatState.data?.atBat.outcome === 0 &&
!showPitchOutcome && (
<ScoreForDesktop
atBat={atBatState.data.atBat}
pitch={atBatState.data.atBat.pitches[currentSessionIdx]}
/>
)}
{atBatState.data && atBatState.data.atBat.outcome !== 0 && selectedToken && (
<div
className={
Expand Down

0 comments on commit 958b082

Please sign in to comment.