Skip to content

Commit

Permalink
fix: minor bugs in service form (#606)
Browse files Browse the repository at this point in the history
Co-authored-by: ciniaeleonora <ciniadelamotte@gmail.com>
Co-authored-by: Hildegard Lydia <37687466+hilyds@users.noreply.github.com>
  • Loading branch information
3 people committed Dec 12, 2022
1 parent 21e4933 commit a47663d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/Dashboard/Lab/Registration/Services/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default {
},
priceByCurrency(amount, currency) {
let price = this.web3.utils.fromWei(amount, currency === "USDT" || currency === "USDTE" ? "mwei" : "ether")
let price = this.web3.utils.fromWei(amount, currency === "USDT" || currency === "USDTE" || currency === "USDT.e" ? "mwei" : "ether")
return `${price} ${currency}`
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Dashboard/Lab/Registration/Services/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
:rules="longDescriptionRules"
></v-textarea>

<label style="font-size: 12px;"> Does your lab provide test kit that can be purchased separately for this service? </label>
<label style="font-size: 12px;"> Does your lab provide test kit that can be purchased separately for this service </label>
<v-radio-group v-model="document.linkKit" row>
<v-radio label="Yes" value="yes"></v-radio>
<v-radio label="No" value="no"></v-radio>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Dashboard/Lab/Services/Add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
:rules="[...fieldRequiredRule]"
/>

<label style="font-size: 12px;"> Does your lab provide test kit that can be purchased separately for this service? </label>
<label style="font-size: 12px;"> Does your lab provide test kit that can be purchased separately for this service </label>
<v-radio-group v-model="document.linkKit">
<v-radio label="Yes" value="yes"></v-radio>
<v-radio label="No" value="no"></v-radio>
Expand Down
3 changes: 2 additions & 1 deletion src/views/Dashboard/Lab/Services/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
:rules="fieldRequiredRule"
></v-textarea>

<label style="font-size: 12px;"> Does your lab provide test kit that can be purchased separately for this service </label>
<v-radio-group v-model="document.linkKit">
<v-radio label="Yes" value="yes"></v-radio>
<v-radio label="No" value="no"></v-radio>
Expand Down Expand Up @@ -404,7 +405,7 @@ export default {
this.id = this.$route.params.id
await this.getServiceCategory()
await this.getService(this.$route.params.id)
this.usdRate = await getConversionCache(this.document.currency, "USD")
this.usdRate = await getConversionCache(this.document.currency === "USDT.e" ? "USDT" : this.document.currency, "USD")
},
methods: {
Expand Down

0 comments on commit a47663d

Please sign in to comment.