2024-02-08 13:42:31 +00:00
|
|
|
import { QuizQuestionResult } from "@model/questionTypes/result";
|
2023-12-23 18:03:34 +00:00
|
|
|
|
2024-02-08 13:42:31 +00:00
|
|
|
export const isResultQuestionEmpty = (resultQuestion: QuizQuestionResult) => {
|
2023-12-23 18:03:34 +00:00
|
|
|
if (
|
2024-02-08 13:42:31 +00:00
|
|
|
(resultQuestion.title.length > 0 && resultQuestion.title !== " ")
|
|
|
|
|| (resultQuestion.description.length > 0 && resultQuestion.description !== " ")
|
|
|
|
|| (resultQuestion.content.back.length > 0 && resultQuestion.content.back !== " ")
|
|
|
|
|| (resultQuestion.content.originalBack.length > 0 && resultQuestion.content.originalBack !== " ")
|
|
|
|
|| (resultQuestion.content.innerName.length > 0 && resultQuestion.content.innerName !== " ")
|
|
|
|
|| (resultQuestion.content.text.length > 0 && resultQuestion.content.text !== " ")
|
|
|
|
|| (resultQuestion.content.video.length > 0 && resultQuestion.content.video !== " ")
|
|
|
|
|| (resultQuestion.content.hint.text.length > 0 && resultQuestion.content.hint.text !== " ")
|
|
|
|
) return false;
|
|
|
|
|
|
|
|
return true;
|
|
|
|
};
|