Calculator Can't clear user story 7 or 8

Hi all, I believe my calculator is finally working properly (although my code is a bit of a mess.) yet I can’t seem to pass the user stories related to the clear button. The only things it returns is “script error (:0)” which doesn’t make sense to me.

You can see my code here=>

You have an undefined variable calcValue; if I change that to this.state.result, you pass 15/16 tests and the failing test says:

3 + 5 * 6 - 2 / 4 should produce 32.5 or 11.5

If you enter that sequence, you’ll see there’s something wrong with the logic somewhere.