Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Arquisoft/wiq_es6c
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed May 2, 2024
2 parents 9585369 + b50e0e6 commit 70ef001
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/FirstGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Quiz = () => {
setRemTime((progress) => {
if(progress === 100){
checkAnswer(-1);
setTotalTime(totalTime + progress/10)
setTotalTime(totalTime + (10-progress/10))
return 0;
}
const diff = 4;
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/game/Calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Calculator = () => {
const time = setInterval(() => {
setRemTime((progress) => {
if(progress === 100){
setTotalTime(totalTime + progress/10)
setTotalTime(totalTime + (80-progress/10)/questions.length)
gameStore(id, username, points, answeredQuestions, totalTime/answeredQuestions.length);
init();
navigator('/menu')
Expand Down

0 comments on commit 70ef001

Please sign in to comment.