Skip to content

Commit

Permalink
fix: custom testnet sign
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Dec 6, 2024
1 parent a88a0dc commit b292cb9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/ui/models/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ export const chains = createModel<RootModel>()({
},
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({
Expand Down

0 comments on commit b292cb9

Please sign in to comment.