From 1f83b6abf97564197b5c3eb4932291668f06b5e8 Mon Sep 17 00:00:00 2001 From: monoid Date: Fri, 27 Oct 2023 00:01:27 +0900 Subject: [PATCH] fix: type error --- islands/StockList.tsx | 2 +- util/api.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/islands/StockList.tsx b/islands/StockList.tsx index ca37166..fcda882 100644 --- a/islands/StockList.tsx +++ b/islands/StockList.tsx @@ -139,7 +139,7 @@ function filterInfo(info: Coperation[], filterList: FilterInfoOption) { const checkMap = new Map(); for (const l of filterList.list) { for (const i of l.items) { - checkMap.set(i.code, l.include); + checkMap.set(i.Code, l.include); } } return info.filter((x) => { diff --git a/util/api.ts b/util/api.ts index 8cc5eb0..09a0c4e 100644 --- a/util/api.ts +++ b/util/api.ts @@ -18,8 +18,8 @@ export interface PageCorpsInfo { } export interface CorpSimple { - code: string; - name: string; + Code: string; + Name: string; } export async function fetchPageInfo(pageName: string): Promise{