Skip to content

Commit

Permalink
xmas: edge case tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNuttall committed Dec 4, 2024
1 parent 2808edf commit 6fd23c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/xmas/src/Components/Player/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Player: React.FC<PlayerProps> = ({
const [springs] = useSpring(
() => ({
from: { x: 0, y: 0 },
to: { x: 5, y: 1 },
to: { x: 5, y: 3 },
config: { tension: 30, friction: 10 },
loop: raceDuration && raceDuration > 0,
reset: true,
Expand Down
2 changes: 1 addition & 1 deletion frontend/xmas/src/Containers/Annoucements/Annoucements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Annoucements: React.FC<AnnoucementsProps> = ({
{gameState === GameState.WaitGame && (
<CountdownPanel duration={3} finishMsg={'Go !!!'} onFinish={onStart} />
)}
{gameState === GameState.Results && (
{gameState === GameState.Results && sortedPlayers.length > 0 && (
<PanelText
msg={`${sortedPlayers[0].name} Wins !!!`}
showOnFinish={false}
Expand Down
2 changes: 1 addition & 1 deletion frontend/xmas/src/Containers/Background/Background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Background: React.FC<BackgroundProps> = ({

<Sprite
name={'finish'}
x={6900 + x}
x={12900 + x}
y={400}
anchor={0.5}
width={600}
Expand Down

0 comments on commit 6fd23c0

Please sign in to comment.