Skip to content

Commit

Permalink
fix: price formatting (#967)
Browse files Browse the repository at this point in the history
Update StakingServiceTab.vue
  • Loading branch information
RiXelanya authored Jul 3, 2024
1 parent c68f5ec commit 11b25eb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
)
template(v-slot:[`item.id`]="{ item }")
.customer-staking-tab__id
div {{ formatId(item.request.hash) }}
div {{ "N/A" }}

template(v-slot:[`item.country`]="{ item }")
.customer-staking-tab__country
Expand Down Expand Up @@ -105,6 +105,7 @@ import { queryLastOrderHashByCustomer, queryServiceById, queryLabById, queryOrde
import { fmtReferenceFromHex } from "@/common/lib/string-format"
import { queryGetServiceOfferById } from "@/common/lib/polkadot-provider/query/service-request"
import { formatPrice } from "@/common/lib/price-format"
import Web3 from "web3"
export default {
Expand Down Expand Up @@ -229,7 +230,7 @@ export default {
},
setAmount(amount) {
const formatedAmount = this.web3.utils.fromWei(String(amount.replaceAll(",", "")), "ether")
const formatedAmount = Web3.utils.fromWei(String(amount.replaceAll(",", "")), "ether")
return formatedAmount
},
Expand Down

0 comments on commit 11b25eb

Please sign in to comment.