From 6d1da9b4b88ea9f0568ef865169d550cd9fc5706 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 14 Dec 2021 16:52:43 +0000 Subject: [PATCH] Fix edge cases and errors. --- equations/src/App.js | 52 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 12 deletions(-) diff --git a/equations/src/App.js b/equations/src/App.js index 987358b..a5fdccf 100644 --- a/equations/src/App.js +++ b/equations/src/App.js @@ -16,9 +16,21 @@ function EquationGroup(p) { return <> (
- - - + + +
{arr.map((eq,i)=>Array.isArray(eq)?:eq==="×"||eq==="-"||eq==="+"||eq==="÷"?:)}
@@ -75,25 +87,29 @@ function Equation(p) { } } //Multiplication and Division first. - for (i=0;i - - - + + +

{equation.map((eq,i)=>Array.isArray(eq)?:eq==="×"||eq==="-"||eq==="+"||eq==="÷"?:)}