diff --git a/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx b/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx index d53fc6857bfc..a02ae8734bca 100644 --- a/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx +++ b/autogpt_platform/frontend/src/components/integrations/credentials-input.tsx @@ -159,7 +159,7 @@ export const CredentialsInput: FC<{ } catch (error) { console.error("Error in OAuth callback:", error); setOAuthError( - `Error in OAuth callback: ${error instanceof Error ? error.message : String(error)}`, + `Error in OAuth callback: ${error instanceof Error ? error.message : error.toString()}`, ); } finally { console.debug("Finalizing OAuth flow");