Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanfrans committed Oct 20, 2023
1 parent 6d3069a commit 890eba2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hardbulls/livestream-control",
"description": "Hard Bulls Livestreaming Tool",
"version": "0.5.1",
"version": "0.5.2",
"type": "module",
"private": true,
"author": {
Expand Down
6 changes: 5 additions & 1 deletion src/DisplayControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ export const DisplayControl = ({ handleChange, displaySettings}: Props) => {
<Grid2 xs={3}>
<FormControlLabel
control={
<Switch checked={!displaySettings.hideBases} onChange={() => handleChange("hideBases", !displaySettings.hideBases)} />
<Switch
checked={!displaySettings.hideBases}
onChange={() =>
handleChange("hideBases", !displaySettings.hideBases)}
/>
}
label="Show Bases"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/Scoreboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const Scoreboard = ({ state, scoreboard }: Props) => {
return (
<BaseballScoreboardComponent
hideBases={`${state.displaySettings.hideBases}`}
hideCounts={`${state.displaySettings.hideBases}`}
hideCounts={`${state.displaySettings.hideCounts}`}
homeScore={scoreboard.score[0]}
balls={scoreboard.balls}
strikes={scoreboard.strikes}
Expand Down

0 comments on commit 890eba2

Please sign in to comment.