From 1cac4fc4c0c639c94f0d5953a7097587c813aa15 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 4 Feb 2022 12:55:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EC=A0=84=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=20=ED=82=A4=20=EC=A0=95=EB=A0=AC=20=EA=B8=B0=EC=A4=80=EC=9D=B4?= =?UTF-8?q?=20int=EA=B0=80=20=EC=95=84=EB=8B=88=EB=9D=BC=20string=EC=9D=B8?= =?UTF-8?q?=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/myPage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/ts/myPage.ts b/hwe/ts/myPage.ts index fa0ea15e..495b6374 100644 --- a/hwe/ts/myPage.ts +++ b/hwe/ts/myPage.ts @@ -87,7 +87,7 @@ $(function ($) { } const keys: string[] = Object.keys(result.log); - if (keys.length > 1 && keys[0] < keys[1]) { + if (keys.length > 1 && parseInt(keys[0]) < parseInt(keys[1])) { keys.reverse(); } @@ -97,7 +97,7 @@ $(function ($) { } const html: string[] = []; - for (const key of Object.values(keys)) { + for (const key of keys) { if ($(`#log_${logType}_${key}`).length) { return true; }