From a271e64ac2652c90a57876fe1c73c6cfeabea417 Mon Sep 17 00:00:00 2001 From: readme-bot Date: Sun, 29 Oct 2023 01:26:22 +0800 Subject: [PATCH] fix delete histical data page show error --- src/components/historical-data/index.tsx | 5 ++++- src/middlelayers/data.ts | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/historical-data/index.tsx b/src/components/historical-data/index.tsx index 384b246..dc16172 100644 --- a/src/components/historical-data/index.tsx +++ b/src/components/historical-data/index.tsx @@ -119,7 +119,10 @@ const App = ({ setRankData([]); }) .catch((e) => toast.error(e.message)) - .finally(() => setLoading(false)); + .finally(() => { + setIsModalOpen(false); + setLoading(false); + }); } function onRowClick(id: number | string) { diff --git a/src/middlelayers/data.ts b/src/middlelayers/data.ts index 8161e07..83ddb69 100644 --- a/src/middlelayers/data.ts +++ b/src/middlelayers/data.ts @@ -34,7 +34,8 @@ export async function loadPortfolios(config: CexConfig & TokenConfig): Promise { - const anas = [ERC20Analyzer, CexAnalyzer, SOLAnalyzer, OthersAnalyzer, BTCAnalyzer, DOGEAnalyzer] + // const anas = [ERC20Analyzer, CexAnalyzer, SOLAnalyzer, OthersAnalyzer, BTCAnalyzer, DOGEAnalyzer] + const anas = [OthersAnalyzer] const coinLists = await bluebird.map(anas, async ana => { const a = new ana(config)