From a56f3411b9cc616ba502e366dd213b87e1977f0b Mon Sep 17 00:00:00 2001 From: WhiteMind Date: Thu, 2 Nov 2023 18:04:30 +0800 Subject: [PATCH] feat: remove an unnecessary chain alert filter --- src/components/Sheet/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/Sheet/index.tsx b/src/components/Sheet/index.tsx index d22f9b3b7c..3644a61a26 100644 --- a/src/components/Sheet/index.tsx +++ b/src/components/Sheet/index.tsx @@ -3,17 +3,11 @@ import { useMemo } from 'react' import { SheetPanel, SheetPointPanel, SheetItem } from './styled' import { useBlockchainAlerts, useNetworkErrMsgs } from '../../services/ExplorerService' -const ALERT_TO_FILTER_OUT = 'CKB v0.105.* have bugs. Please upgrade to the latest version.' - const Sheet = () => { const { t } = useTranslation() const networkErrMsgs = useNetworkErrMsgs() const chainAlerts = useBlockchainAlerts() - - const messages = useMemo( - () => [...chainAlerts.filter(msg => msg !== ALERT_TO_FILTER_OUT), ...networkErrMsgs], - [chainAlerts, networkErrMsgs], - ) + const messages = useMemo(() => [...chainAlerts, ...networkErrMsgs], [chainAlerts, networkErrMsgs]) return messages.length > 0 ? (