ucfopen / Materia

Engage students with easily embedded apps for online courses. Supercharge your course with compelling experiences and game mechanics.
https://ucfopen.github.io/Materia-Docs/
GNU Affero General Public License v3.0
36 stars 32 forks source link

Fixes duplicate API score calls #1499

Closed cayb0rg closed 10 months ago

cayb0rg commented 10 months ago

Scorescreen is making two widget_instance_play_scores_get calls, one for when the instance loaded and one when scoreTable loaded. Moved play score data triggers to their own useEffect, separate from loading the custom score screen.

Adds a state check in the score page's lobby to ensure all global variables are loaded and set to state before entering the score page, such as isPreview

Overrides include.css styling that hides nav elements on page widths < 720px for embedded score screens