jackcrane / gpacalc

2 stars 0 forks source link

Cannot Read Property 'tostring' in script.js:214 #4

Closed cjreplogle closed 4 years ago

cjreplogle commented 4 years ago

Based off of my understanding, the grade function is messed up because of a typo in the area that calculates the individual gpa for each class. No clue why this worked then stopped working.

Image with developer tools: bug001

jackcrane commented 4 years ago

The issue was resolved. It seems as though the calc could not deal with grades over 100%.

Damnit CJ fail some assignments

cjreplogle commented 4 years ago

Edit: figured out the grade was [element7] which was at 102% and therefore confused the calculator, added if statement for if grade is over 100% to set it back to 100%.