diff --git a/src/components/atoms/Price/index.tsx b/src/components/atoms/Price/index.tsx index 5448613d6..def1ce106 100644 --- a/src/components/atoms/Price/index.tsx +++ b/src/components/atoms/Price/index.tsx @@ -24,8 +24,9 @@ export default function Price({ const [price, setPrice] = useState() useEffect(() => { + if (!ocean || !accountId || !chainId) return + async function init() { - console.log(ocean) const price = await getBestPrice(ddo.dataToken) setPrice(price) setPriceOutside && price !== '' && setPriceOutside(price)