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 3e8d403
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 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,12 @@ function suggest() {
})
}
} else {
suggestChain(JSON.parse(conf.value));
const chainInfo: ChainInfo = JSON.parse(conf.value);
try {
suggestChain(chainInfo);
} catch (e) {
console.log(e)
}
}
}
Expand Down

0 comments on commit 3e8d403

Please sign in to comment.