From 76a68918ada671031cc0a525f2adf899bef69135 Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Mon, 24 Aug 2020 02:23:35 +0900 Subject: [PATCH] Fix typo --- index.ts | 2 +- src/card.ts | 4 ++-- src/trophies.ts | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 9b9a2a9..31c7aa8 100644 --- a/index.ts +++ b/index.ts @@ -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" }), }, diff --git a/src/card.ts b/src/card.ts index 99cd5ea..53b3e4f 100644 --- a/src/card.ts +++ b/src/card.ts @@ -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} `; } } diff --git a/src/trophies.ts b/src/trophies.ts index 1b6fa10..d60915e 100644 --- a/src/trophies.ts +++ b/src/trophies.ts @@ -19,7 +19,6 @@ export abstract class Trophy { xmlns="http://www.w3.org/2000/svg" >