This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch fix-github-token
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 6efbe8864d2a2bbeecc7b54128446636ade44569
Author: mintsweet <[email protected]>
AuthorDate: Tue Jan 16 20:34:47 2024 +1300

    fix(config-ui): github token is valid condition error
---
 config-ui/src/plugins/register/github/connection-fields/token.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/plugins/register/github/connection-fields/token.tsx 
b/config-ui/src/plugins/register/github/connection-fields/token.tsx
index 9c99523a9..62b05bc0e 100644
--- a/config-ui/src/plugins/register/github/connection-fields/token.tsx
+++ b/config-ui/src/plugins/register/github/connection-fields/token.tsx
@@ -92,7 +92,7 @@ export const Token = ({
     setTokens(
       (res.tokens ?? []).map((it) => ({
         value: it.token,
-        isValid: it.success || it.warning,
+        isValid: !!it.login,
         from: it.login,
         status: !it.success ? 'error' : it.warning ? 'warning' : 'success',
       })),

Reply via email to