Skip to content

Commit

Permalink
Fix suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
froch committed Feb 6, 2024
1 parent 8c787e6 commit 3e81dae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/wallet/suggest.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, ref } from 'vue';
import { suggestChain } from '@leapwallet/cosmos-snap-provider';
import {type ChainInfo, suggestChain} from '@leapwallet/cosmos-snap-provider';
import { useDashboard, type ChainConfig, useBlockchain, NetworkType } from '@/stores';
import { CosmosRestClient } from '@/libs/client';
import { onMounted } from 'vue';
Expand Down Expand Up @@ -136,7 +136,9 @@ function suggest() {
})
}
} else {
suggestChain(JSON.parse(conf.value));
suggestChain(JSON.parse(conf.value)).catch(e => {
error.value = e
})
}
}
Expand Down

0 comments on commit 3e81dae

Please sign in to comment.