null & undefined handling
This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import {knownTokens} from "@/knownTokens.js";
|
||||
import {computed, ref} from "vue";
|
||||
import {ethers} from "ethers";
|
||||
import {onChainChanged} from "@/blockchain/wallet.js";
|
||||
|
||||
|
||||
// USING THE STORE:
|
||||
//
|
||||
@@ -141,7 +138,7 @@ export const useOrderStore = defineStore('order', ()=> {
|
||||
// Order Input Forms
|
||||
// const tokenA = ref(null) // defined at top
|
||||
// const tokenB = ref(null)
|
||||
const buy = ref(false)
|
||||
const buy = ref(true)
|
||||
const inverted = ref(false)
|
||||
const amount = ref(100) // todo adjust default
|
||||
const amountIsTokenA = ref(false) // todo adjust default
|
||||
|
||||
Reference in New Issue
Block a user