Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Nov 6, 2024
1 parent aeb4ce0 commit 8d213af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aipane/components/Aipane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ const Aipane: React.FC<AipaneProps> = (props: AipaneProps): React.JSX.Element =>
const clearKeys = (): void => {
Object.keys(config.providers).map((key) => {
const provider = config.providers[key] as AIProvider;
console.log(`Clearing key for ${provider.apiKey}`);
localStorage.removeItem(provider.apiKey);
});
};
Expand Down Expand Up @@ -228,9 +229,9 @@ const Aipane: React.FC<AipaneProps> = (props: AipaneProps): React.JSX.Element =>
</>
)}
{isOutlook ? (
<p className={styles.fakeLink} onClick={clearKeys}>
<span className={styles.fakeLink} onClick={clearKeys}>
Clean the keys
</p>
</span>
) : (
<Link to="settings">Settings</Link>
)}
Expand Down

0 comments on commit 8d213af

Please sign in to comment.