1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-02 16:37:39 +01:00

added return value of selectCaptionById from selectLanguage function

This commit is contained in:
Ashutosh Shinde 2024-01-09 10:43:20 +05:30
parent 65efb65bc8
commit 803668b492

View file

@ -35,7 +35,7 @@ export function useCaptions() {
async (language: string) => { async (language: string) => {
const caption = captionList.find((v) => v.language === language); const caption = captionList.find((v) => v.language === language);
if (!caption) return; if (!caption) return;
selectCaptionById(caption.id); return selectCaptionById(caption.id);
}, },
[captionList, selectCaptionById], [captionList, selectCaptionById],
); );