Skip to content

🎥 Make videos programmatically with React

fix

JonnyBurger80e1279e5387
diff --git a/packages/convert/app/routes/prompts._index.tsx b/packages/convert/app/routes/prompts._index.tsx
index 75da8b8450..8b9854ced1 100644
--- a/packages/convert/app/routes/prompts._index.tsx
+++ b/packages/convert/app/routes/prompts._index.tsx
@@ -77,6 +77,7 @@ const PromptsGallery: React.FC = () => {
`Failed to fetch prompts: ${res.status} ${res.statusText}`,
);
}
+
const data = await res.json();
setSubmissions((prev) =>
cursor ? [...prev, ...data.items] : data.items,
diff --git a/packages/convert/app/routes/prompts.submit._index.tsx b/packages/convert/app/routes/prompts.submit._index.tsx
index 8b865bf20f..94dd7ff100 100644
--- a/packages/convert/app/routes/prompts.submit._index.tsx
+++ b/packages/convert/app/routes/prompts.submit._index.tsx
@@ -79,6 +79,7 @@ const PromptSubmit: React.FC = () => {
`Failed to fetch upload status: ${statusRes.status}`,
);
}
+
const data = await statusRes.json();
if (
@@ -94,6 +95,7 @@ const PromptSubmit: React.FC = () => {
});
}
} catch (error) {
+ // eslint-disable-next-line no-console
console.error('Error while polling upload status', error);
// keep polling
}
@@ -196,8 +198,9 @@ const PromptSubmit: React.FC = () => {
.
</div>
<div className="mt-4 text-muted-foreground font-brand">
- Note that this showcase is curated - we may reject submissions
- if they are repetitive or not up to our quality standards. In that
+ {' '}
+ if e that this showcase is curated - we may reject submissions if
+ they are repetitive or not up to our quality standards. In that
case, we will not give notification or reason.
</div>
<Button