From 65ae01187080a04ffe6769aa2b0e1a0365454fb5 Mon Sep 17 00:00:00 2001 From: Cheng Shi Date: Mon, 28 Oct 2024 10:24:26 -0400 Subject: [PATCH] fix: show correct error info --- src/sections/account/api-token-section/ApiTokenSection.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sections/account/api-token-section/ApiTokenSection.tsx b/src/sections/account/api-token-section/ApiTokenSection.tsx index 72294d450..e9f2c7a4b 100644 --- a/src/sections/account/api-token-section/ApiTokenSection.tsx +++ b/src/sections/account/api-token-section/ApiTokenSection.tsx @@ -69,10 +69,9 @@ export const ApiTokenSection = ({ repository }: ApiTokenSectionProps) => { } if (getError || recreatingError || revokingError) { - console.error('Error getting the API token:', error, recreatingError, revokingError) return ( - {recreatingError} + {getError || recreatingError || revokingError} ) }