Arquisoft / wiq_en1b

wiq_en1b
https://youtu.be/r2XqDUHj3zU
0 stars 1 forks source link

When changing the language the counter starts from 10 again #100

Closed lauratbg closed 2 months ago

uo289267 commented 3 months ago

changeLanguage is a function provided from i18n component and maybe in the act of trying to change the language the countdown is being reloaded to with its original status. I think the solution would be to unable the cb or menu item of Language so it cannot be clicked once you have started a game, not only because the countdown behaves strangely but also because it is not feasible to load the questions in another language in the middle of a game (at the end right now it is no possible that you are playing a game and you change the language on the go, this is because the questions are being loaded all at once and for one single language).

lauratbg commented 2 months ago

Trying do disable the language button in question view

lauratbg commented 2 months ago

Solved const isQuestionsPage = location.pathname === '/questions';

image