Skip to content

Commit

Permalink
[sim] add key to logentry list
Browse files Browse the repository at this point in the history
  • Loading branch information
democat3457 committed Nov 19, 2024
1 parent 6f68ca0 commit 96900ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/debug/simulator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function Simulator() {
className="log-list"
>
{messageLog.map(({ message, ts }) => {
return <LogEntry message={message} ts={ts} />;
return <LogEntry key={ts.getMilliseconds()} message={message} ts={ts} />;
})}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/game-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export abstract class GameManager {

public abstract handleMessage(
message: Message,
clientType: ClientType,
id: string,
): Promise<void>;
}

Expand Down

0 comments on commit 96900ed

Please sign in to comment.