modificaciones de scorm reporte de calificacion y cambio de rutas absolutas a relativas
This commit is contained in:
@@ -5,14 +5,14 @@ import QuestionModal from '../game/QuestionModal'
|
||||
import RuletaSVG from '../game/Ruleta/RuletaSVG'
|
||||
|
||||
interface GameProps {
|
||||
onEnd: (aprobado: boolean) => void
|
||||
onEnd: (aprobado: boolean, correctas: number) => void
|
||||
}
|
||||
|
||||
export default function Game({ onEnd }: GameProps) {
|
||||
const { estado, categorias, girar, responder, cerrarFeedback, MAX_PREGUNTAS } = useRuleta()
|
||||
|
||||
useEffect(() => {
|
||||
if (estado.completado) onEnd(estado.aprobado)
|
||||
if (estado.completado) onEnd(estado.aprobado, estado.correctas)
|
||||
}, [estado.completado])
|
||||
|
||||
function handleGirar() {
|
||||
|
||||
Reference in New Issue
Block a user