debug: move banner outside kinescopeId block to catch null ID

This commit is contained in:
2026-05-26 16:22:18 +05:00
parent 4222834539
commit 5e5f616888
@@ -122,12 +122,13 @@ export default async function LessonPage({ params }: Props) {
{/* Title */}
<h1 className="text-2xl font-bold mb-6 leading-snug">{lesson.title}</h1>
{/* DEBUG: remove after fix */}
<div style={{background:"red",color:"white",padding:"4px 8px",fontSize:12,marginBottom:8}}>DEBUG lessonId: {lessonId} | kinescopeId: {String(lesson.kinescopeId ?? "NULL")} | coverImage: {String(lesson.coverImage ?? "NULL")} | isAdmin: {String(isAdmin)}</div>
{/* Video */}
{lesson.kinescopeId && (
<div className="mb-8">
<KinescopePlayer videoId={lesson.kinescopeId} poster={lesson.coverImage ?? undefined} />
{/* DEBUG: remove after fix */}
<div style={{background:"red",color:"white",padding:"4px 8px",fontSize:12}}>DEBUG coverImage: {String(lesson.coverImage ?? "NULL")} | isAdmin: {String(isAdmin)}</div>
</div>
)}