Skip to content

Commit

Permalink
Merge pull request #60 from mfactory-lab/converter
Browse files Browse the repository at this point in the history
fix(converter): getAllTokens when switch cluster
  • Loading branch information
harniy authored Feb 13, 2024
2 parents bea3cd0 + 5685049 commit 4c98e89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stores/convertet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ export const useConverterStore = defineStore('converter', () => {

watchDebounced([() => connectionStore.cluster, () => converterClient.value], async () => {
if (connectionStore.cluster === 'devnet') {
await getAllPairs()
Promise.all([
await getAllPairs(),
await getAllTokens(),
])
}
}, { immediate: true, debounce: 500, maxWait: 1000 })

Expand Down

0 comments on commit 4c98e89

Please sign in to comment.