Skip to content

Commit

Permalink
fix(connector): handle error for all 400 and 500 family codes
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk committed Jul 8, 2024
1 parent e8534da commit 0d76e04
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,17 @@ const ConfigurationDetailsOverlay = ({
) : (
<ErrorBar
errorText={
decentralIdentityUrlsError.code !== 500
decentralIdentityUrlsError.code >= 400 &&
decentralIdentityUrlsError.code < 500
? t('error.description') +
' ' +
t('error.additionalDescription')
: t('error.errorBar')
}
showButton={decentralIdentityUrlsError.code === 500}
showButton={
decentralIdentityUrlsError.code >= 500 &&
decentralIdentityUrlsError.code < 600
}
buttonText={t('error.tryAgain')}
handleButton={refetch}
/>
Expand Down

0 comments on commit 0d76e04

Please sign in to comment.