Skip to content

Commit

Permalink
Merge pull request #876 from AI4Bharat/yt_url
Browse files Browse the repository at this point in the history
remove manual duration for youtube link
  • Loading branch information
aparna-aa authored Feb 27, 2025
2 parents 04e8660 + eddf753 commit 1731ada
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/common/CreateVideoDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ const CreateVideoDialog = ({
setShowPopup(true);
}
if (videoLink.length > 10 & !videoLink.includes("youtube")){
setDurationSelector(true);
if(youtubeUrl.includes("youtube.com")){
setDurationSelector(false);
}else{
setDurationSelector(true);
}
}else{
setDurationSelector(false);
}
Expand All @@ -100,7 +104,7 @@ const CreateVideoDialog = ({
}else{
setShowYoutubeUrl(false);
}
}, [videoLink, videosInProject]);
}, [videoLink, videosInProject, youtubeUrl]);

const handleClear = () => {
setLang("");
Expand Down

0 comments on commit 1731ada

Please sign in to comment.