null & undefined handling

This commit is contained in:
Tim Olson
2024-01-07 23:12:57 -04:00
parent 8fabfe0d2b
commit 52a41c6f81
11 changed files with 52 additions and 20 deletions

View File

@@ -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