diff --git a/equations/src/App.js b/equations/src/App.js index 1e986a2..6d9359f 100644 --- a/equations/src/App.js +++ b/equations/src/App.js @@ -19,7 +19,7 @@ function EditorControls(p) { eqArr[id] = oldVal setEquation(eqArr) }}>{">"}} - { + { var eqArr = [...equation] eqArr.splice(id,1) setEquation(eqArr) @@ -77,7 +77,7 @@ function EquationOperator(p) { setEquation(eqArr) },[op]) - return
{setOp(ev.currentTarget.value)}}> {["+","-","×","÷"].map((sign)=>)}