Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Nov 13, 2024
1 parent b564169 commit e9305a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autogpt_platform/frontend/src/hooks/useCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export default function useCredentials(): CredentialsData | null {
]) ||
null;

if (!discriminatorValue && credentialsSchema.credentials_provider.length > 1) {
if (
!discriminatorValue &&
credentialsSchema.credentials_provider.length > 1
) {
throw new Error("Multi-provider credential input requires discriminator!");
}

Expand Down

0 comments on commit e9305a8

Please sign in to comment.