From eae674b992088f660d999431ffacff211f0955eb Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:06:57 +0700 Subject: [PATCH] fix application is blank page if choosing custom speech vendor (#361) --- src/containers/internal/views/applications/speech-selection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/internal/views/applications/speech-selection.tsx b/src/containers/internal/views/applications/speech-selection.tsx index 30b1a1c..caf88b9 100644 --- a/src/containers/internal/views/applications/speech-selection.tsx +++ b/src/containers/internal/views/applications/speech-selection.tsx @@ -94,7 +94,7 @@ export const SpeechProviderSelection = ({ useEffect(() => { currentVendor.current = synthVendor; - if (!synthesis) { + if (!synthesis || synthVendor.startsWith("custom:")) { return; } const voiceOpts = synthesis[synthVendor as keyof SynthesisVendors]