website refactor
This commit is contained in:
@@ -14,9 +14,9 @@ export class PointsTableJsonMapper {
|
||||
}
|
||||
|
||||
fromJson(serialized: SerializedPointsTable): PointsTable {
|
||||
const record: Record<number, number> = {};
|
||||
const record: Map<number, number> = new Map();
|
||||
for (const [position, points] of Object.entries(serialized.pointsByPosition)) {
|
||||
record[Number(position)] = points;
|
||||
record.set(Number(position), points);
|
||||
}
|
||||
return new PointsTable(record);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user