diff --git a/src/pages/QuizAnswersPage/CardAnswer.tsx b/src/pages/QuizAnswersPage/CardAnswer.tsx index e422cce3..62a0f254 100644 --- a/src/pages/QuizAnswersPage/CardAnswer.tsx +++ b/src/pages/QuizAnswersPage/CardAnswer.tsx @@ -452,6 +452,10 @@ function timewebContent(editQuizId: string, content: string, qid: string) { // return content.split("<")[1].split('src="')[1].split('"/>')[0] } - //Новая версия: контент просто записан с указанием расширения файла + if (content.includes(`"Image"`)) { + const data = JSON.parse(content) + return data.Image + } + //Новая версия: контент просто записан с указанием расширения файла(устарело) return `https://s3.timeweb.cloud/3c580be9-cf31f296-d055-49cf-b39e-30c7959dc17b/squizimages/${editQuizId}/${content}` } \ No newline at end of file