Skip to content

Commit

Permalink
ADM-865:[frontend]fix none alert situation (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfpatrick authored Apr 2, 2024
1 parent f1b4465 commit 2d997f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface TokenAccessAlertProps {
}

export const TokenAccessAlert = ({ errorDetail }: TokenAccessAlertProps) => {
return errorDetail && errorDetail !== 404 ? (
return errorDetail && (errorDetail === 400 || errorDetail === 401) ? (
<StyledAlert aria-label='alert for token access error' icon={<CancelIcon fontSize='inherit' />} severity='error'>
<EllipsisText fitContent>
<AlertTextContent errorDetail={errorDetail} />
Expand Down

0 comments on commit 2d997f3

Please sign in to comment.