Fixed a bug introduced on the last one

This commit is contained in:
Tiago Ribeiro
2024-05-20 11:23:52 +01:00
parent 3e3b24cc30
commit 16419a5584
2 changed files with 2 additions and 4 deletions

View File

@@ -2,7 +2,6 @@
import {MultipleChoiceExercise, MultipleChoiceQuestion} from "@/interfaces/exam";
import useExamStore from "@/stores/examStore";
import clsx from "clsx";
import {isNaN} from "lodash";
import {useEffect, useState} from "react";
import {CommonProps} from ".";
import Button from "../Low/Button";
@@ -17,7 +16,7 @@ function Question({
}: MultipleChoiceQuestion & {userSolution: string | undefined; onSelectOption?: (option: string) => void; showSolution?: boolean}) {
return (
<div className="flex flex-col gap-10">
{isNaN(id) ? (
{isNaN(Number(id)) ? (
<span className="">{prompt}</span>
) : (
<span className="">