fix starting player referring to wrong value

This commit is contained in:
Viktor Rådberg
2023-09-27 20:04:29 +02:00
parent bcaab4fdb0
commit 38a6ed4493
3 changed files with 2 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ type LifeCounterProps = {
const LifeCounter = ({ player, opponents }: LifeCounterProps) => {
const { updatePlayer, updateLifeTotal } = usePlayers();
const { showStartingPlayer } = useGlobalSettings();
const { settings } = useGlobalSettings();
const [showPlayerMenu, setShowPlayerMenu] = useState(false);
const [recentDifference, setRecentDifference] = useState(0);
@@ -211,7 +211,7 @@ const LifeCounter = ({ player, opponents }: LifeCounterProps) => {
return (
<LifeCounterContentWrapper $backgroundColor={player.color}>
<LifeCounterWrapper $rotation={player.settings.rotation}>
{showStartingPlayer &&
{settings.showStartingPlayer &&
player.isStartingPlayer &&
player.showStartingPlayer && (
<PlayerNoticeWrapper