diff --git a/src/pages/(generation)/SpeakingGeneration.tsx b/src/pages/(generation)/SpeakingGeneration.tsx index 33c2431a..1ba762a2 100644 --- a/src/pages/(generation)/SpeakingGeneration.tsx +++ b/src/pages/(generation)/SpeakingGeneration.tsx @@ -70,7 +70,7 @@ const PartTab = ({ playSound(isError ? "error" : "check"); if (isError) return toast.error("Something went wrong, please try to generate the video again."); - setPart({...part, result: result.data, gender, avatar}); + setPart({...part, result: {...result.data, topic: part?.topic}, gender, avatar}); }) .catch((e) => { toast.error("Something went wrong!"); @@ -79,6 +79,8 @@ const PartTab = ({ .finally(() => setIsLoading(false)); }; + useEffect(() => console.log(part), [part]); + return (