|
@@ -404,9 +404,9 @@ function Addition() {
|
|
|
|
|
|
const finishCalculation = () => {
|
|
|
document.getElementById("idmtResultSteps").innerHTML = "";
|
|
|
- let resCalc = resArr.filter(n => n !== " ").join("");
|
|
|
- setResultsGrid([{number: resCalc}]);
|
|
|
- resCalc = parseFloat(resCalc);
|
|
|
+ let resCalc = resArr.join("");
|
|
|
+ setResultsGrid([{number: resCalc.replace(/ /g, " ")}]);
|
|
|
+ resCalc = parseFloat(resCalc.replace(/ /g, ""));
|
|
|
|
|
|
let message = "";
|
|
|
if(resCalc === realResult){
|