]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6325 @0:01
authorsoufiane <soufiane@cubedesigners.com>
Fri, 29 Sep 2023 14:45:48 +0000 (16:45 +0200)
committersoufiane <soufiane@cubedesigners.com>
Fri, 29 Sep 2023 14:45:48 +0000 (16:45 +0200)
js/quiz.screen.outro.js

index e84f12ee58f196ce4a1f39b59ec82a8077c548fd..37f20e2be155e511ab572f5bebf5fcdcc08692dd 100644 (file)
@@ -36,11 +36,13 @@ QuizScreenOutro.prototype = {
             .to("#progress-counter", {
                 scale: 1,
             })
-            tl.to(".active-screen #progress-circle", {
-                drawSVG: percent + "%",
-                duration: 1.5,
-                ease: "power4.easeOut"
-            }, ">-0.5")
+            if(score > 0) {
+                tl.to(".active-screen #progress-circle", {
+                    drawSVG: percent + "%",
+                    duration: 1.5,
+                    ease: "power4.easeOut"
+                }, ">-0.5")
+            }
             tl.to(".score-text", {
                     scale: 1,
                 }, 1.3)