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