This is the starting point of my error:

What I'm trying to do is simply take that number and perform the mathematical operation of multiplication upon it- in this case multiplying it by 0.2 - however- my program contains a heinous bug which- rather than performing that operation- simply appends 20 to the string in the text box, as you can see here:

This is the code I'm trying to use to apply the operative logic, to me it seems perfectly reasonable- though admittedly I'm not a world class expert in JavaScript, nor React. Is there something blatantly wrong with the following code snippet?

addLogicToEquation(newLogic) { let equation = this.state.equation if(newLogic==="10%"){ let newEquation = equation + (equation * 0.10) this.setState({equation: newEquation}) } if (newLogic==="15%"){ let newEquation = equation + (equation * 0.15) this.setState({equation: newEquation}) } if (newLogic==="20%"){ let newEquation = equation + (equation * 0.20) this.setState({equation: newEquation}) } else{ // we're adding more numbers let newEquation = equation + newLogic this.setState({equation: newEquation}) } }

Perhaps that snippet is reasonable, and the flaw is elsewhere in my program- I'm really not even sure where to begin looking, the complete codebase can be found here, it's not really very voluminous- something on the order of- 10 files or so.