Skip to content

Commit

Permalink
Merge pull request #26 from nzzdev/release-1.3.1
Browse files Browse the repository at this point in the history
Release 1.3.1
  • Loading branch information
fuenkchen authored Sep 19, 2017
2 parents 1752015 + fef1106 commit 01549dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nzz/q-quiz",
"version": "1.3.0",
"version": "1.3.1",
"description": "Q quiz",
"keywords": [
"storytelling",
Expand Down
4 changes: 4 additions & 0 deletions script_src/scoreHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export function getScorePerQuestion(guessQuality, multiplicator) {

export function renderFinalScoreText(finalScore, element) {
let lastCardTitleElement = element.querySelector('.q-quiz-last-card-title');
if (lastCardTitleElement === undefined || lastCardTitleElement === null) {
lastCardTitleElement = document.createElement('h3');
lastCardTitleElement.classList.add('s-q-item__title', 'q-quiz-last-card-title');
}
let multipleChoice = finalScore.multipleChoice;
let numberGuess = finalScore.numberGuess;
let mapPointGuess = finalScore.mapPointGuess;
Expand Down

0 comments on commit 01549dd

Please sign in to comment.