mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Merge pull request #416 from oceanprotocol/fix/price-display
more fine grained price issues display
This commit is contained in:
commit
68f0d3740b
@ -28,10 +28,15 @@ export default function Price({
|
||||
conversion={conversion}
|
||||
type={price.type}
|
||||
/>
|
||||
) : !price || price?.value === 0 ? (
|
||||
) : !price || !price.address || price.address === '' ? (
|
||||
<div className={styles.empty}>
|
||||
No price found{' '}
|
||||
<Tooltip content="We could not find a pool for this data set, which can have multiple reasons. Is your wallet connected to the correct network?" />
|
||||
No price set{' '}
|
||||
<Tooltip content="No pricing mechanism has been set on this asset yet." />
|
||||
</div>
|
||||
) : price.isConsumable !== 'true' ? (
|
||||
<div className={styles.empty}>
|
||||
Low liquidity{' '}
|
||||
<Tooltip content="This pool does not have enough liquidity for using this data set." />
|
||||
</div>
|
||||
) : (
|
||||
<Loader message="Retrieving price..." />
|
||||
|
@ -158,13 +158,7 @@ export default function Consume({
|
||||
<File file={file} />
|
||||
</div>
|
||||
<div className={styles.pricewrapper}>
|
||||
{isConsumable ? (
|
||||
<Price ddo={ddo} conversion />
|
||||
) : (
|
||||
<div className={styles.help}>
|
||||
There is not enough liquidity in the pool to buy this data set.
|
||||
</div>
|
||||
)}
|
||||
<Price ddo={ddo} conversion />
|
||||
{!isInPurgatory && <PurchaseButton />}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user