From c1570e4469337644e4182aa908fab1cdbd697b33 Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 5 May 2025 15:09:37 -0700 Subject: [PATCH] Basic logic check for is provider setup (#84) --- src/hooks/useSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useSettings.ts b/src/hooks/useSettings.ts index a29d0ea..394ba7a 100644 --- a/src/hooks/useSettings.ts +++ b/src/hooks/useSettings.ts @@ -86,7 +86,7 @@ export function useSettings() { const isProviderSetup = (provider: string) => { const providerSettings = settings?.providerSettings[provider]; - if (providerSettings) { + if (providerSettings?.apiKey?.value) { return true; } if (envVars[PROVIDER_TO_ENV_VAR[provider]]) {