Skip to content

Commit

Permalink
🐛 fix: Fix onFinish
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 18, 2023
1 parent df77a6e commit ce8da22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/useTTS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useTTS = (
if (index < textArray.length - 1) {
setIndex(index + 1);
} else {
onFinish?.(data, ...rest);
onFinish?.(restAudio.arrayBuffers, ...rest);
setShouldFetch(false);
setIsGlobalLoading(false);
}
Expand Down

0 comments on commit ce8da22

Please sign in to comment.