Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const PlayerActionButtons: React.FC<PlayerActionButtonsProps> = ({
flex items-center justify-center gap-2 transform hover:scale-105
${isCompact ? "py-2 px-3 text-xs" : "py-2.5 px-4 text-sm"}`}
>
Wait For Next Blind
Sit In On Next Big Blind
</button>
<button
onClick={() => handleSitIn(tableId, currentNetwork, SIT_IN_METHOD_POST_NOW)}
Expand All @@ -117,7 +117,7 @@ export const PlayerActionButtons: React.FC<PlayerActionButtonsProps> = ({
flex items-center justify-center gap-2 transform hover:scale-105
${isCompact ? "py-2 px-3 text-xs" : "py-2.5 px-4 text-sm"}`}
>
Post And Play
Post Required Blinds Now
</button>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/utils/playerActionDisplayUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ describe("getPlayerActionDisplay", () => {
playerStatus: PlayerStatus.SITTING_IN,
sitInMethod: SIT_IN_METHOD_NEXT_BB,
});
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting For Next Blind..." });
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting For Next Big Blind..." });
});

it("returns pending with post-now message when method is post-now", () => {
Expand All @@ -300,7 +300,7 @@ describe("getPlayerActionDisplay", () => {
playerStatus: PlayerStatus.SITTING_IN,
sitInMethod: SIT_IN_METHOD_POST_NOW,
});
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting to Post And Play..." });
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting to Post Required Blinds..." });
});

it("returns pending with next-bb message when method is null", () => {
Expand All @@ -309,7 +309,7 @@ describe("getPlayerActionDisplay", () => {
playerStatus: PlayerStatus.SITTING_IN,
sitInMethod: null,
});
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting For Next Blind..." });
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting For Next Big Blind..." });
});

it("returns pending even if legalActions contains SIT_IN", () => {
Expand All @@ -330,7 +330,7 @@ describe("getPlayerActionDisplay", () => {
sitInMethod: SIT_IN_METHOD_NEXT_BB,
totalSeatedPlayers: 1,
});
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting For Next Blind..." });
expect(result).toEqual({ kind: "pending", waitingMessage: "Waiting For Next Big Blind..." });
});

// --- No actions ---
Expand Down
4 changes: 2 additions & 2 deletions src/utils/playerActionDisplayUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export function getPlayerActionDisplay(input: PlayerActionDisplayInput): PlayerA
// 1. Pending: player already confirmed sit-in, waiting for action
if (playerStatus === PlayerStatus.SITTING_IN) {
const waitingMessage = sitInMethod === SIT_IN_METHOD_POST_NOW
? "Waiting to Post And Play..."
: "Waiting For Next Blind...";
? "Waiting to Post Required Blinds..."
: "Waiting For Next Big Blind...";
return { kind: "pending", waitingMessage };
}

Expand Down