Skip to content

Commit

Permalink
unrelated: fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Apr 30, 2024
1 parent 95295e0 commit dbe695f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chess/frontend/src/components/LobbyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const LobbyList: React.FC<Props> = ({
fullWidth
onClick={() => onLobbySelect(lobby)}
>
{actionMap[lobby.lobby_state]}
{actionMap[lobby.lobby_state as LobbyStatus]}
</Button>
}
/>
Expand Down
3 changes: 2 additions & 1 deletion chess/frontend/src/paima/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Hash } from '@paima/sdk/utils';
import type { BaseRoundStatus, LobbyState, LobbyStateQuery, LobbyStatus, NewLobby, UserLobby, UserStats } from '@chess/utils';
import type { BaseRoundStatus, LobbyState, LobbyStateQuery, NewLobby, UserLobby, UserStats } from '@chess/utils';
import type { LobbyStatus } from '@chess/db';
export interface RoundEnd {
blocks: number;
seconds: number;
Expand Down
1 change: 1 addition & 0 deletions chess/utils/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type IGetBlockHeightsResult = {
export type ConciseResult = 'w' | 't' | 'l';
export type ExpandedResult = 'win' | 'tie' | 'loss';
export type MatchResult = [ConciseResult, ConciseResult];
export { LobbyStatus } from '@chess/db';

export interface MatchWinnerResponse {
match_status?: LobbyStatus;
Expand Down

0 comments on commit dbe695f

Please sign in to comment.