From 2d997f3914487e32dda75e70f25cfb3ea3046926 Mon Sep 17 00:00:00 2001 From: Pengfei Qian Date: Tue, 2 Apr 2024 15:47:19 +0800 Subject: [PATCH] ADM-865:[frontend]fix none alert situation (#1322) --- frontend/src/containers/MetricsStep/TokenAccessAlert/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/containers/MetricsStep/TokenAccessAlert/index.tsx b/frontend/src/containers/MetricsStep/TokenAccessAlert/index.tsx index 463942c106..3808198885 100644 --- a/frontend/src/containers/MetricsStep/TokenAccessAlert/index.tsx +++ b/frontend/src/containers/MetricsStep/TokenAccessAlert/index.tsx @@ -37,7 +37,7 @@ interface TokenAccessAlertProps { } export const TokenAccessAlert = ({ errorDetail }: TokenAccessAlertProps) => { - return errorDetail && errorDetail !== 404 ? ( + return errorDetail && (errorDetail === 400 || errorDetail === 401) ? ( } severity='error'>