варианты и картинка норм показывают картинку и заглушку

This commit is contained in:
Nastya 2024-02-13 23:12:51 +03:00
parent e0ed50db5f
commit f1eee6ad07
2 changed files with 4 additions and 3 deletions

@ -144,7 +144,8 @@ export const Varimg = ({ currentQuestion }: VarimgProps) => {
alignItems: "center",
justifyContent: "center",
backgroundColor: "#9A9AAF12",
color: "#9A9AAF"
color: "#9A9AAF",
textAlign: "center"
}}
>
{answer ? (
@ -157,7 +158,7 @@ export const Varimg = ({ currentQuestion }: VarimgProps) => {
) : (
<BlankImage />
)
) : currentQuestion.content.back !== " " ? (
) : currentQuestion.content.back !== " " && currentQuestion.content.back !== null ? (
<img
src={currentQuestion.content.back}
style={{ width: "100%", height: "100%", objectFit: "cover" }}

@ -5,7 +5,7 @@ import { QuizIdContext } from "@contexts/QuizIdContext";
import { RootContainerWidthContext } from "@contexts/RootContainerWidthContext";
import QuizAnswerer from "../lib/components/QuizAnswerer";
const defaultQuizId = "9ed8d0e9-d355-4fc1-8b89-4f962e3efc52"; // branching
const defaultQuizId = "0c568ac9-d176-491b-b6cd-5afd31254951"; // branching
//const defaultQuizId = "9ed8d0e9-d355-4fc1-8b89-4f962e3efc52"; //looooong header
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear