From b292cb9ccbf867ec070fb4c24113c8820b06a32c Mon Sep 17 00:00:00 2001 From: Hodor Date: Fri, 6 Dec 2024 18:21:11 +0800 Subject: [PATCH] fix: custom testnet sign --- src/ui/models/chains.ts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/ui/models/chains.ts b/src/ui/models/chains.ts index a5793933e24..f559821b5d7 100644 --- a/src/ui/models/chains.ts +++ b/src/ui/models/chains.ts @@ -74,14 +74,13 @@ export const chains = createModel()({ }, effects: (dispatch) => ({ init(_: void, store) { - Promise.race([store.app.wallet.getCustomTestnetLogos(), sleep(3000)]) - .then(() => store.app.wallet.getCustomTestnetList()) - .then((testnetList) => { - updateChainStore({ - testnetList: testnetList, - }); - this.setField({ testnetList }); + store.app.wallet.getCustomTestnetLogos(); + store.app.wallet.getCustomTestnetList().then((testnetList) => { + updateChainStore({ + testnetList: testnetList, }); + this.setField({ testnetList }); + }); getMainnetListFromLocal().then((mainnetList) => { if (mainnetList.length) { updateChainStore({