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{