Skip to content

Commit

Permalink
handle get prompt error
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Nov 6, 2024
1 parent 7482afe commit cfeaa6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/aipane/components/HeroComboPrompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ const HeroComboPrompts: React.FC<HeroComboPromptsProps> = ({ onChange, standalon
// Filter out standalone prompts if the client is Outlook
// Standalone prompts should be used in standalone mode only
useEffect(() => {
// if (standalone !== null) {
console.log(`Retrieving prompts with: standalone=${standalone}`);
setPrompts(getPrompts(standalone || false));
// } else {
// console.error("Standalone mode not set");
// }
if (standalone !== null) {
console.log(`Retrieving prompts with: standalone=${standalone}`);
setPrompts(getPrompts(standalone || false));
} else {
console.error("Standalone mode not set");
}
}, [standalone]);

const handleChange = React.useCallback(
Expand Down

0 comments on commit cfeaa6d

Please sign in to comment.