Skip to content

Commit

Permalink
Expose time taken in result object (#295)
Browse files Browse the repository at this point in the history
* --added fixed progress bar

* --added props for readme and validation for progress bar input color

* --progressBarColor in quiz object

* --added some changes

* --minor error fixed

* added time spent at QuestionSummary

---------

Co-authored-by: WK Wong <wingkwong.code@gmail.com>
  • Loading branch information
Jaykovsky and wingkwong authored Sep 25, 2024
1 parent 01a3614 commit 817ce62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Core.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function Core({
userInput,
totalPoints,
correctPoints,
timeTaken: timer - timeRemaining,
});
}, [totalPoints, correctPoints]);

Expand Down

0 comments on commit 817ce62

Please sign in to comment.