Skip to content

🎥 Make videos programmatically with React

Update ConvertUi.tsx

JonnyBurger04a6298a16e1
diff --git a/packages/convert/app/components/ConvertUi.tsx b/packages/convert/app/components/ConvertUi.tsx
index a72ebb595b..ebb846ec32 100644
--- a/packages/convert/app/components/ConvertUi.tsx
+++ b/packages/convert/app/components/ConvertUi.tsx
@@ -704,13 +704,15 @@ const ConvertUI = ({
<ConvertUiSection active={crop} setActive={onCropClick}>
Crop
</ConvertUiSection>
- <div className="bg-white border-2 border-b-4 rounded-md border-black text-sm p-3 mt-4">
- Applied Crop: <br />
- Left: {cropRect.left} <br />
- Top: {cropRect.top} <br />
- Width: {cropRect.width} <br />
- Height: {cropRect.height} <br />
- </div>
+ {crop ? (
+ <div className="bg-white border-2 border-b-4 rounded-md border-black text-sm p-3 mt-4">
+ Applied Crop: <br />
+ Left: {cropRect.left} <br />
+ Top: {cropRect.top} <br />
+ Width: {cropRect.width} <br />
+ Height: {cropRect.height} <br />
+ </div>
+ ) : null}
</div>
);
}