File tree Expand file tree Collapse file tree
src/components/model-selector Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,8 +166,8 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
166166
167167 // Auto-select the newly downloaded model (skip if recording in progress)
168168 setTimeout ( async ( ) => {
169- const recordingResult = await commands . isRecording ( ) ;
170- if ( recordingResult . status === "ok" && recordingResult . data ) {
169+ const isRecording = await commands . isRecording ( ) ;
170+ if ( isRecording ) {
171171 return ; // Skip auto-switch if recording in progress
172172 }
173173 loadCurrentModel ( ) ;
@@ -199,8 +199,8 @@ const ModelSelector: React.FC<ModelSelectorProps> = ({ onError }) => {
199199
200200 // Auto-select the newly extracted model (skip if recording in progress)
201201 setTimeout ( async ( ) => {
202- const recordingResult = await commands . isRecording ( ) ;
203- if ( recordingResult . status === "ok" && recordingResult . data ) {
202+ const isRecording = await commands . isRecording ( ) ;
203+ if ( isRecording ) {
204204 return ; // Skip auto-switch if recording in progress
205205 }
206206 loadCurrentModel ( ) ;
You can’t perform that action at this time.
0 commit comments