diff --git a/app/TTSMenu.tsx b/app/TTSMenu.tsx index d3764ef..c0398b5 100644 --- a/app/TTSMenu.tsx +++ b/app/TTSMenu.tsx @@ -43,8 +43,7 @@ const TTSMenu = () => { }, []) const getVoices = (value = false) => { - if (enableTTS ?? value) - Speech.getAvailableVoicesAsync().then((list) => setModelList((current) => list)) + if (enableTTS ?? value) Speech.getAvailableVoicesAsync().then((list) => setModelList(list)) } return ( @@ -130,7 +129,7 @@ const TTSMenu = () => { {modelList.length !== 0 && (