market order validity fix
This commit is contained in:
@@ -79,7 +79,7 @@ function build(order, component, options={}) {
|
||||
|
||||
// check order validity
|
||||
watchEffect(()=>{
|
||||
let valid = props.order.amount
|
||||
let valid = props.order.amount > 0
|
||||
if (valid) {
|
||||
for (const builder of builders.value) {
|
||||
if (!builder.valid) {
|
||||
|
||||
@@ -38,7 +38,7 @@ import {useTheme} from "vuetify";
|
||||
import {pendOrder} from "@/blockchain/wallet.js";
|
||||
import ToolbarPane from "@/components/chart/ToolbarPane.vue";
|
||||
import NeedsChart from "@/components/NeedsChart.vue";
|
||||
import router from "@/router/index.js";
|
||||
import {nav} from "@/misc.js";
|
||||
|
||||
const s = useStore()
|
||||
const co = useChartOrderStore()
|
||||
|
||||
@@ -19,7 +19,7 @@ export function newBuilder( component, options = {}) {
|
||||
const id = uuid()
|
||||
return {
|
||||
id, component, options,
|
||||
allocation: 1.0, points: {}, shapes: {}, props: {}, valid: false,
|
||||
allocation: 1.0, points: {}, shapes: {}, props: {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user