17 lines
590 B
TypeScript
17 lines
590 B
TypeScript
|
import { QuizQuestionResult } from "@model/questionTypes/result"
|
||
|
|
||
|
export const checkEmptyData = ({ resultData }: { resultData: QuizQuestionResult }) => {
|
||
|
let check = true
|
||
|
if (
|
||
|
resultData.title.length > 0 ||
|
||
|
resultData.description.length > 0 ||
|
||
|
resultData.content.back.length > 0 ||
|
||
|
resultData.content.originalBack.length > 0 ||
|
||
|
resultData.content.innerName.length > 0 ||
|
||
|
resultData.content.text.length > 0 ||
|
||
|
resultData.content.video.length > 0 ||
|
||
|
resultData.content.hint.text.length > 0
|
||
|
) check = false
|
||
|
return check
|
||
|
}
|
||
|
|