Skip to content

Commit

Permalink
Merge pull request ava-labs#126 from ava-labs/dev
Browse files Browse the repository at this point in the history
Export chain bug fix
  • Loading branch information
kanatliemre authored Jan 8, 2021
2 parents cf0bdf5 + fbd7799 commit 3002932
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/wallet/earn/ChainTransfer/ChainTransfer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ export default class ChainTransfer extends Vue {
this.isImportErr = false
try {
this.chainExport(this.formAmt, this.sourceChain, this.targetChain)
this.chainExport(this.formAmt, this.sourceChain, this.targetChain).catch((e) => {
this.onerror(e)
})
} catch (err) {
this.onerror(err)
}
Expand Down Expand Up @@ -374,6 +376,7 @@ export default class ChainTransfer extends Vue {
}
} catch (e) {
this.onerror(e)
this.onErrorImport(e)
return
}
Expand Down Expand Up @@ -426,14 +429,17 @@ export default class ChainTransfer extends Vue {
console.error(err)
this.isLoading = false
this.err = err
this.isImportErr = true
this.$store.dispatch('Notifications/add', {
type: 'error',
title: 'Transfer Failed',
message: err,
})
}
onErrorImport(err: any) {
this.isImportErr = true
}
startAgain() {
this.$refs.form.clear()
Expand Down

0 comments on commit 3002932

Please sign in to comment.