From 8d213afb0552e9f957bf20667711f2ba263e40ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6Ltorio?= Date: Wed, 6 Nov 2024 11:27:23 +0100 Subject: [PATCH] wip --- src/aipane/components/Aipane.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/aipane/components/Aipane.tsx b/src/aipane/components/Aipane.tsx index 4050a7f..3a51a6e 100644 --- a/src/aipane/components/Aipane.tsx +++ b/src/aipane/components/Aipane.tsx @@ -197,6 +197,7 @@ const Aipane: React.FC = (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); }); }; @@ -228,9 +229,9 @@ const Aipane: React.FC = (props: AipaneProps): React.JSX.Element => )} {isOutlook ? ( -

+ Clean the keys -

+ ) : ( Settings )}