Skip to content

Commit

Permalink
fix: show correct error info
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengShi-1 committed Oct 28, 2024
1 parent 0d6d699 commit 65ae011
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sections/account/api-token-section/ApiTokenSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ export const ApiTokenSection = ({ repository }: ApiTokenSectionProps) => {
}

if (getError || recreatingError || revokingError) {
console.error('Error getting the API token:', error, recreatingError, revokingError)
return (
<Alert variant="danger" dismissible={false}>
{recreatingError}
{getError || recreatingError || revokingError}
</Alert>
)
}
Expand Down

0 comments on commit 65ae011

Please sign in to comment.