mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-29 05:31:58 +01:00
added return value of selectCaptionById from selectLanguage function
This commit is contained in:
parent
65efb65bc8
commit
803668b492
@ -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],
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user