From f6f6c6842857fe12bf5b9fb61797554e24ae4f4d Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 1 Mar 2021 16:08:50 +0100 Subject: [PATCH] more fine grained price issues display --- src/components/atoms/Price/index.tsx | 9 +++++++-- src/components/organisms/AssetActions/Consume.tsx | 8 +------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/atoms/Price/index.tsx b/src/components/atoms/Price/index.tsx index 28c1b22c2..caa09d8c5 100644 --- a/src/components/atoms/Price/index.tsx +++ b/src/components/atoms/Price/index.tsx @@ -28,11 +28,16 @@ export default function Price({ conversion={conversion} type={price.type} /> - ) : !price || price?.value === 0 ? ( + ) : !price || !price.address ? (
- No price found{' '} + No price set{' '}
+ ) : price.isConsumable !== 'true' ? ( +
+ Not enough liquidity{' '} + +
) : ( ) diff --git a/src/components/organisms/AssetActions/Consume.tsx b/src/components/organisms/AssetActions/Consume.tsx index 42b4b4bdb..adfbb5edd 100644 --- a/src/components/organisms/AssetActions/Consume.tsx +++ b/src/components/organisms/AssetActions/Consume.tsx @@ -158,13 +158,7 @@ export default function Consume({
- {isConsumable ? ( - - ) : ( -
- There is not enough liquidity in the pool to buy this data set. -
- )} + {!isInPurgatory && }