diff --git a/src/app/[locale]/studio/render/[projectId]/page.tsx b/src/app/[locale]/studio/render/[projectId]/page.tsx index e9d687d..3866aeb 100644 --- a/src/app/[locale]/studio/render/[projectId]/page.tsx +++ b/src/app/[locale]/studio/render/[projectId]/page.tsx @@ -109,8 +109,8 @@ export default function RenderPage() { setProgressMessage(data.progressMessage ?? `Rendering… ${data.progress}%`); if (data.previewB64) setPreviewB64(data.previewB64); - if (data.status === "completed" && data.outputUrl) { - setOutputUrl(data.outputUrl); + if (data.status === "completed") { + if (data.outputUrl) setOutputUrl(data.outputUrl); setProgress(100); setPhase("completed"); } else if (data.status === "failed") { @@ -219,27 +219,36 @@ export default function RenderPage() { {/* State-specific panel */} - {phase === "completed" && outputUrl ? ( + {phase === "completed" ? (

ویدیوی شما آماده است!

- - - دانلود MP4 - - - - لینک اشتراک‌گذاری - + {outputUrl ? ( + <> + + + دانلود MP4 + + + + لینک اشتراک‌گذاری + + + ) : ( +

+ رندر در محیط توسعه کامل شد (بدون فایل خروجی واقعی). در محیط تولید، لینک دانلود اینجا + نمایش داده می‌شود. +

+ )}