Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(api-keys): prevent error toast loop on initial key list load

Gabriel Steinc5b17947c4bb
diff --git a/src/components/ApiKeysSection.tsx b/src/components/ApiKeysSection.tsx
index 90c26f3c9..b30dbc463 100644
--- a/src/components/ApiKeysSection.tsx
+++ b/src/components/ApiKeysSection.tsx
@@ -56,15 +56,12 @@ export default function ApiKeysSection() {
try {
const { keys: fetched } = await ApiKeysService.list();
setKeys(fetched);
- } catch {
- toast({
- title: t("apiKeysSection.errors.loadFailed"),
- variant: "destructive",
- });
+ } catch (err) {
+ console.error("Failed to load API keys:", err);
} finally {
setIsLoading(false);
}
- }, [t, toast]);
+ }, []);
useEffect(() => {
fetchKeys();