Skip to content

Commit 9480e50

Browse files
committed
fix
1 parent f3d35cd commit 9480e50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/containers/Tenant/Diagnostics/Overview/TransferInfo/Credentials.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export function Credentials({connection}: CredentialsProps) {
2020
}
2121

2222
if ('OAuthToken' in connection) {
23-
return connection.OAuthToken.Token || connection.OAuthToken.TokenSecretName ? 'OAuth' : '';
23+
return connection.OAuthToken?.Token || connection.OAuthToken?.TokenSecretName
24+
? 'OAuth'
25+
: '';
2426
}
2527

2628
return 'unknown';

0 commit comments

Comments
 (0)