Skip to content

Commit

Permalink
Update notif to reference correct prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinMcNeil committed Sep 19, 2024
1 parent 5797a6d commit ebe47eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export function App() {
}, [runOut]);

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

await pullImagePromise

Expand Down Expand Up @@ -203,10 +203,10 @@ export function App() {
onError: (err) => {
console.error(err);
runOutput.updateOutput({ method: 'message', params: { debug: err } });
client.desktopUI.toast.error(`Error running prompt: ${promptInput.includes('local') ? 'LOCAL' : promptInput}`)
client.desktopUI.toast.error(`Error running prompt: ${selectedPrompt!.includes('local') ? 'LOCAL' : selectedPrompt}`)
},
onClose: () => {
client.desktopUI.toast.success(`Prompt finished ${promptInput.includes('local') ? 'LOCAL' : promptInput}`)
client.desktopUI.toast.success(`Prompt finished ${selectedPrompt!.includes('local') ? 'LOCAL' : selectedPrompt}`)
}
}
});
Expand Down

0 comments on commit ebe47eb

Please sign in to comment.