Skip to content

Commit

Permalink
don't shift game array
Browse files Browse the repository at this point in the history
  • Loading branch information
beam41 committed Jun 9, 2024
1 parent 87dde07 commit 3fa0bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { xmlElement: $, mapHour } = require("./drawUtil");

/** @param {{id: number, name: string, time2w: number, timeTotal: number, imgIco: string}[]} game */
async function draw(game) {
const game0 = game.shift();
const game0 = game[0];

const fullHeight = 105 + 32 * game.length;

Expand Down

0 comments on commit 3fa0bf1

Please sign in to comment.