@@ -75,8 +75,8 @@ export function Credentials({ onOpenChange }: CredentialsProps) {
7575 // Find matching connection - now we can do an exact match on providerId
7676 const connection = connections . find ( ( conn : any ) => {
7777 // Exact match on providerId is the most reliable
78- return conn . provider === service . providerId ;
79- } ) ;
78+ return conn . provider === service . providerId
79+ } )
8080
8181 // If we found an exact match, use it
8282 if ( connection ) {
@@ -92,16 +92,16 @@ export function Credentials({ onOpenChange }: CredentialsProps) {
9292 const connectionWithScopes = connections . find ( ( conn : any ) => {
9393 // Only consider connections from the same base provider
9494 if ( ! conn . baseProvider || ! service . providerId . startsWith ( conn . baseProvider ) ) {
95- return false ;
95+ return false
9696 }
97-
97+
9898 // Check if all required scopes for this service are included in the connection
9999 if ( conn . scopes && service . scopes ) {
100- return service . scopes . every ( scope => conn . scopes . includes ( scope ) ) ;
100+ return service . scopes . every ( ( scope ) => conn . scopes . includes ( scope ) )
101101 }
102-
103- return false ;
104- } ) ;
102+
103+ return false
104+ } )
105105
106106 if ( connectionWithScopes ) {
107107 return {
@@ -112,7 +112,7 @@ export function Credentials({ onOpenChange }: CredentialsProps) {
112112 }
113113 }
114114
115- return service ;
115+ return service
116116 } )
117117
118118 setServices ( updatedServices )
@@ -209,7 +209,7 @@ export function Credentials({ onOpenChange }: CredentialsProps) {
209209 saveToStorage < string [ ] > ( 'pending_oauth_scopes' , service . scopes )
210210 saveToStorage < string > ( 'pending_oauth_return_url' , window . location . href )
211211 saveToStorage < string > ( 'pending_oauth_provider_id' , service . providerId )
212-
212+
213213 logger . info ( 'Connecting service:' , {
214214 serviceId : service . id ,
215215 providerId : service . providerId ,
0 commit comments