Skip to content

Commit d1a35be

Browse files
committed
Disable multiple socket connections
- Clear logs on navigation to profile and leaderboard - Show debug log on compile error
1 parent 3476599 commit d1a35be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/components/Leaderboard/LeaderboardElement.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ export class LeaderboardElement extends React.Component<
110110
const ratingArray: number[] = [];
111111
const labelArray: string[] = [];
112112
player.rating.forEach((element) => {
113-
ratingArray.push(Math.round((element.rating + Number.EPSILON) * 100) / 100);
113+
// @ts-ignore
114+
ratingArray.push(element.rating.toFixed(2));
114115
const dateobj = new Date(element.validFrom);
115116
labelArray.push(dateobj.toLocaleDateString('en-GB').substr(0, 5));
116117
});

src/app/components/SocketHandler.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export class SocketHandler extends React.Component<SocketHandlerInterfaces.Props
3333
this.props.clearAllLogs();
3434
this.props.clearDisplayDebugLog();
3535
this.props.updateDisplayDebugLog(message.body);
36-
// this.props.updateGameLog(Buffer.from(message.body), '', '');
3736
return;
3837
}
3938

0 commit comments

Comments
 (0)