Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben890 committed Feb 5, 2024
1 parent 810beed commit 7b6a978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const Questions: React.FC<PropsQuestions> = ({ quizId }) => {
try {
if (!optionSelect || optionSelect.length === 0) {
console.error("No hay puntos para asignar");
return; // Salir de la función si no hay puntos para asignar
return;
}

const points: number[] = optionSelect.map(q => q.point as number);
Expand Down

0 comments on commit 7b6a978

Please sign in to comment.