Skip to content

Commit ebe47eb

Browse files
author
colinmcneil
committed
Update notif to reference correct prompts
1 parent 5797a6d commit ebe47eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extension/ui/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export function App() {
166166
}, [runOut]);
167167

168168
const startPrompt = async () => {
169-
client.desktopUI.toast.success(`Starting Prompt: ${promptInput.includes('local') ? 'LOCAL' : promptInput}`)
169+
client.desktopUI.toast.success(`Starting Prompt: ${selectedPrompt!.includes('local') ? 'LOCAL' : selectedPrompt}`)
170170

171171
await pullImagePromise
172172

@@ -203,10 +203,10 @@ export function App() {
203203
onError: (err) => {
204204
console.error(err);
205205
runOutput.updateOutput({ method: 'message', params: { debug: err } });
206-
client.desktopUI.toast.error(`Error running prompt: ${promptInput.includes('local') ? 'LOCAL' : promptInput}`)
206+
client.desktopUI.toast.error(`Error running prompt: ${selectedPrompt!.includes('local') ? 'LOCAL' : selectedPrompt}`)
207207
},
208208
onClose: () => {
209-
client.desktopUI.toast.success(`Prompt finished ${promptInput.includes('local') ? 'LOCAL' : promptInput}`)
209+
client.desktopUI.toast.success(`Prompt finished ${selectedPrompt!.includes('local') ? 'LOCAL' : selectedPrompt}`)
210210
}
211211
}
212212
});

0 commit comments

Comments
 (0)