Skip to content

Commit fdea7e1

Browse files
committed
fix build
1 parent add9544 commit fdea7e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/model-selector/ModelSelector.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)