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 ? (