Skip to content

Commit 6f678ac

Browse files
bug fix: level calculation wasnt rounding and so certain numbers were falling through the cracks
1 parent feac7ce commit 6f678ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/slickQuiz.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SlickQuiz jQuery Plugin
33
* http://github.com/QuickenLoans/SlickQuiz
44
*
5-
* @updated March 25, 2013
5+
* @updated April 29, 2013
66
*
77
* @author Julie Bellinson - http://www.jewlofthelotus.com
88
* @copyright (c) 2013 Quicken Loans - http://www.quickenloans.com
@@ -374,7 +374,7 @@
374374

375375
// Calculates knowledge level based on number of correct answers
376376
calculateLevel: function(correctAnswers) {
377-
var percent = correctAnswers / questionCount,
377+
var percent = (correctAnswers / questionCount).toFixed(2),
378378
level = 0;
379379

380380
if (plugin.method.inRange(0, 0.20, percent)) {

0 commit comments

Comments
 (0)