From 9b0590384cc6c246a0ac0b8b59cc8a9e64ca406e Mon Sep 17 00:00:00 2001 From: claudiaHash <49017601+claudiaHash@users.noreply.github.com> Date: Tue, 24 Aug 2021 16:43:56 +0300 Subject: [PATCH] message changed for no network selected (#809) --- src/components/organisms/AssetList.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/organisms/AssetList.tsx b/src/components/organisms/AssetList.tsx index 43bd807a9..477186a3a 100644 --- a/src/components/organisms/AssetList.tsx +++ b/src/components/organisms/AssetList.tsx @@ -6,6 +6,7 @@ import { DDO } from '@oceanprotocol/lib' import classNames from 'classnames/bind' import { getAssetsBestPrices, AssetListPrices } from '../../utils/subgraph' import Loader from '../atoms/Loader' +import { useUserPreferences } from '../../providers/UserPreferences' const cx = classNames.bind(styles) @@ -36,6 +37,7 @@ const AssetList: React.FC = ({ onPageChange, className }) => { + const { chainIds } = useUserPreferences() const [assetsWithPrices, setAssetWithPrices] = useState() const [loading, setLoading] = useState(true) @@ -71,6 +73,8 @@ const AssetList: React.FC = ({ key={assetWithPrice.ddo.id} /> )) + ) : chainIds.length === 0 ? ( +
No network selected.
) : (
No results found.
)}