From a72d23681e2ee1d743f5e08ad4b4597eac770e8d Mon Sep 17 00:00:00 2001 From: Mati Dastugue Date: Mon, 29 Mar 2021 09:56:18 -0300 Subject: [PATCH] Filter safes loaded from URL in safe list --- src/components/SafeListSidebar/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/SafeListSidebar/index.tsx b/src/components/SafeListSidebar/index.tsx index 9846f170..af1d2b8c 100644 --- a/src/components/SafeListSidebar/index.tsx +++ b/src/components/SafeListSidebar/index.tsx @@ -39,7 +39,7 @@ type Props = { export const SafeListSidebar = ({ children }: Props): ReactElement => { const [isOpen, setIsOpen] = useState(false) const [filter, setFilter] = useState('') - const safes = useSelector(sortedSafeListSelector) + const safes = useSelector(sortedSafeListSelector).filter((safe) => safe.name !== 'LOADED SAFE') const defaultSafe = useSelector(defaultSafeSelector) const currentSafe = useSelector(safeParamAddressFromStateSelector) @@ -75,7 +75,6 @@ export const SafeListSidebar = ({ children }: Props): ReactElement => { } const filteredSafes = useMemo(() => filterBy(filter, safes), [safes, filter]) - useEffect(() => { setTimeout(() => { setFilter('')