mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-04 19:59:53 +00:00
added return value of selectCaptionById from selectLanguage function
This commit is contained in:
parent
65efb65bc8
commit
803668b492
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ export function useCaptions() {
|
|||
async (language: string) => {
|
||||
const caption = captionList.find((v) => v.language === language);
|
||||
if (!caption) return;
|
||||
selectCaptionById(caption.id);
|
||||
return selectCaptionById(caption.id);
|
||||
},
|
||||
[captionList, selectCaptionById],
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue