This commit is contained in:
ryo-ma 2020-08-24 02:23:35 +09:00
parent 894d829eec
commit 76a68918ad
3 changed files with 3 additions and 4 deletions

View file

@ -25,7 +25,7 @@ export default async (req: ServerRequest) => {
} else {
req.respond(
{
body: "Can not find username",
body: "Can not find a query parameter: username",
status: 404,
headers: new Headers({ "Content-Type": "text" }),
},

View file

@ -36,7 +36,7 @@ export class Card {
}
this.height = this.panelSize * panelHeightCount;
const renderdTrophy = trophyList.reduce(
const renderedTrophy = trophyList.reduce(
(sum: string, trophy: Trophy, i: number) => {
const x = this.panelSize * (i % this.maxPanelWidthCount);
const y = this.panelSize * Math.floor(i / this.maxPanelWidthCount);
@ -52,7 +52,7 @@ export class Card {
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
${renderdTrophy}
${renderedTrophy}
</svg>`;
}
}

View file

@ -19,7 +19,6 @@ export abstract class Trophy {
xmlns="http://www.w3.org/2000/svg"
>
<rect
data-testid="card-bg"
x="0.5"
y="0.5"
rx="4.5"