Skip to content

Commit

Permalink
feat: remove USN from lab (#570)
Browse files Browse the repository at this point in the history
remove USN from lab
  • Loading branch information
rubenkristian committed Nov 4, 2022
1 parent e4b53f7 commit 05c007a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 22 deletions.
10 changes: 0 additions & 10 deletions src/components/HeaderWallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ export default {
balance: 0
},
{
name: "usdn",
icon: "near-logo",
currency: "USN",
unit: "ether",
balance: 0
},
{
name: "usdt",
icon: "tether-logo",
Expand All @@ -112,7 +104,6 @@ export default {
methods: {
...mapMutations({
setWalletBalance: "substrate/SET_WALLET_BALANCE",
setUSNBalance: "substrate/SET_USN_BALANCE",
setUSDTBalance: "substrate/SET_USDT_BALANCE",
setPolkadotWallet: "substrate/SET_POLKADOT_WALLET",
clearWallet: "metamask/CLEAR_WALLET"
Expand Down Expand Up @@ -151,7 +142,6 @@ export default {
if (!data) return
wallet.balance = this.web3.utils.fromWei(data.data.balance.replaceAll(",", ""), wallet.unit)
wallet.id = data.id
if (wallet.name === "usdn") this.setUSNBalance(wallet.balance)
if (wallet.name === "usdt") this.setUSDTBalance(wallet.balance)
}
})
Expand Down
4 changes: 0 additions & 4 deletions src/store/substrate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const defaultState = {
mnemonicData: null,
lastBlockData: null,
blockNumber: null,
usnBalance: null,
usdtBalance: null,
polkadotWallet: null
}
Expand Down Expand Up @@ -91,9 +90,6 @@ export default {
SET_WALLET_BALANCE(state, balance) {
state.walletBalance = balance
},
SET_USN_BALANCE(state, balance) {
state.usnBalance = balance
},
SET_USDT_BALANCE(state, balance) {
state.usdtBalance = balance
},
Expand Down
6 changes: 3 additions & 3 deletions src/views/Dashboard/Lab/Registration/Services/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export default {
category: "",
dnaCollectionProcess: "",
name: "",
currency: "USN",
currency: "USDT",
price: 0,
qcPrice: 0,
description: "",
Expand All @@ -342,7 +342,7 @@ export default {
isLoading: false,
isSubmiting: false,
isUploading: false,
currencyList: ["USN", "USDT"],
currencyList: ["USDT"],
listExpectedDuration: [
{ text: "Hours", value: "Hours" },
{ text: "Days", value: "Days" }
Expand Down Expand Up @@ -522,7 +522,7 @@ export default {
category: "",
dnaCollectionProcess: "",
name: "",
currency: "USN",
currency: "USDT",
price: 0,
qcPrice: 0,
description: "",
Expand Down
1 change: 0 additions & 1 deletion src/views/Dashboard/Lab/Registration/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ import { u8aToHex } from "@polkadot/util"
import { generalDebounce } from "@/utils"
import DialogErrorBalance from "@/components/Dialog/DialogErrorBalance"
const englishAlphabet = val => (val && /^[A-Za-z0-9!@#$%^&*\\(\\)\-_=+:;"',.\\/? ]+$/.test(val)) || "This field can only contain English alphabet"
export default {
Expand Down
4 changes: 2 additions & 2 deletions src/views/Dashboard/Lab/Services/Add.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export default {
category: "",
dnaCollectionProcess: "",
name: "",
currency: "USN",
currency: "USDT",
price: 0,
qcPrice: 0,
description: "",
Expand All @@ -322,7 +322,7 @@ export default {
listCategories:[],
isLoading: false,
showModalAlert: false,
currencyList: ["USN", "USDT"],
currencyList: ["USDT"],
listExpectedDuration: ["Hours", "Days"],
dnaCollectionProcessList: [],
isBiomedical: false,
Expand Down
4 changes: 2 additions & 2 deletions src/views/Dashboard/Lab/Services/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default {
category: "",
dnaCollectionProcess: "",
name: "",
currency: "USN",
currency: "USDT",
price: 0,
qcPrice: 0,
description: "",
Expand All @@ -295,7 +295,7 @@ export default {
isLoading: false,
usdRate: 0,
isUploading: false,
currencyList: ["USN", "USDT"],
currencyList: ["USDT"],
currencyType: "",
listExpectedDuration: ["Hours", "Days"],
listCategories: [],
Expand Down

0 comments on commit 05c007a

Please sign in to comment.