diff --git a/enjoy/src/renderer/hooks/use-pronunciation-assessments.tsx b/enjoy/src/renderer/hooks/use-pronunciation-assessments.tsx index bd343101..90ec581c 100644 --- a/enjoy/src/renderer/hooks/use-pronunciation-assessments.tsx +++ b/enjoy/src/renderer/hooks/use-pronunciation-assessments.tsx @@ -2,7 +2,6 @@ import * as sdk from "microsoft-cognitiveservices-speech-sdk"; import { useContext } from "react"; import { AppSettingsProviderContext } from "@renderer/context"; import camelcaseKeys from "camelcase-keys"; -import { toast } from "@renderer/components/ui"; export const usePronunciationAssessments = () => { const { webApi, EnjoyApp } = useContext(AppSettingsProviderContext); @@ -19,7 +18,7 @@ export const usePronunciationAssessments = () => { recording = await EnjoyApp.recordings.findOne(targetId); } - EnjoyApp.recordings.sync(recording.id).catch((err) => toast.error(err)); + EnjoyApp.recordings.sync(recording.id); const blob = await (await fetch(recording.src)).blob(); targetId = recording.id; targetType = "Recording";