Skip to content

Commit

Permalink
fix: fix bug in itemError function
Browse files Browse the repository at this point in the history
  • Loading branch information
koderholic committed Nov 2, 2022
1 parent fb2c03f commit aed8a60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/swaps/views/Timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ export default {
(item) => item.id === this.id
)
},
itemError(error) {
if (isLiqualityErrorString(error)) {
return translateLiqualityError(LiqualityErrorStringToJson(error))
itemError() {
if (isLiqualityErrorString(this.item.error)) {
return translateLiqualityError(LiqualityErrorStringToJson(this.item.error))
}
return error.replace('Error: ', '')
return this.item.error.replace('Error: ', '')
},
reverseRate() {
return BN(1).div(calculateQuoteRate(this.item)).dp(8)
Expand Down

0 comments on commit aed8a60

Please sign in to comment.