cadia-lvl / samromur

https://samromur.is/
MIT License
2 stars 2 forks source link

Fix NaN stats #95

Closed staffanru closed 3 years ago

staffanru commented 3 years ago

This also allows the user to select, Tala, Hlusta, Herma on the continue screen. I also let the store track totalSpoken and totalVerified by updating those values when updating progress.

I realize that I'm solving a lot of the cases for: if Herma do that, if Tala do this if Hlusta do the other thing with switch cases and putting the alternative texts into arrays.

If you know of a prettier/intuitive solution, I'm all ears! (mostly related to continue-buttons.tsx)