Skip to content

Commit

Permalink
more small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed Jun 6, 2023
1 parent 96bdfc5 commit 7557859
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/stores/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ const MetricsStore = create<MetricsState & MetricsActions>()((set, get) => ({
// Only updated in the beginning of a new round, or first time calculating metrics
...((currentPlayerIndex === 0 || currentPlayerMetrics.length === 0) &&
numberOfCardsDrawn !== 0 && {
isLeading: index === leadingPlayerIndex,
isLast: index === lastPlayerIndex,
isLeading: index === leadingPlayerIndex && index !== lastPlayerIndex,
isLast: index === lastPlayerIndex && index !== leadingPlayerIndex,
}),
}));

Expand Down
1 change: 0 additions & 1 deletion src/views/Game/components/PlayerItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const PlayerItem: FunctionComponent<PlayerItemProps> = (props) => {
position: "relative",
display: "flex",
backgroundColor: color(),
// color: (t) => t.palette.getContrastText(color()),
color: "white",
}}
onClick={() => settings.SetSimpleCardsMode(!settings.simpleCardsMode)}
Expand Down
4 changes: 2 additions & 2 deletions src/views/Login/Continue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ContinueGameView: FunctionComponent = () => {
return (
<>
<Helmet>
<title>Academy - Continue Game</title>
<title>Academy - Continue a game</title>
</Helmet>

<Fade in={true}>
Expand All @@ -95,7 +95,7 @@ const ContinueGameView: FunctionComponent = () => {
},
}}
>
<CardHeader title="Continue game" />
<CardHeader title="Continue a game" />

<Divider
sx={{
Expand Down
2 changes: 1 addition & 1 deletion src/views/Login/New/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const NewGameView: FunctionComponent = () => {
size="large"
to="/login/continue"
>
Continue game
Continue a game
</Button>
</Stack>
</CardContent>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Login/components/ContinueGameDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ContinueGameDialog: FunctionComponent<ContinueGameDialogProps> = (
return (
<ConfirmDialog
{...props}
title="Continue game"
title="Continue a game"
message={`Are you sure you want to continue game ${
props.game.id
} started at ${datetimeToddmmHHMMSS(
Expand Down

0 comments on commit 7557859

Please sign in to comment.