diff --git a/src/algo.ts b/src/algo.ts index 95ceea1..90dd560 100644 --- a/src/algo.ts +++ b/src/algo.ts @@ -6,9 +6,6 @@ import { randRange } from './utils' type HistoryType = { a: number; b: number; op: OperatorType }[] -export const operations = reactive([]) -export const plaquettes = ref([]) - export function isOperationResultValid(op: Operation): boolean { return ( !!op.operator && @@ -24,11 +21,7 @@ export function isOperationInvalid(op: Operation): boolean { } export function isOperationReady(op: Operation): boolean { - return ( - !!op.operator && - !!op.left && - !!op.right - ) + return !!op.operator && !!op.left && !!op.right } export function getEmptyOperation(): Operation { diff --git a/src/components/OperationsList.vue b/src/components/OperationsList.vue index a68bfb1..9850f4b 100644 --- a/src/components/OperationsList.vue +++ b/src/components/OperationsList.vue @@ -29,7 +29,9 @@ - + {{ operate(op.operator, op.left.value, op.right.value) }} - + ? + +