mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
test fixes
This commit is contained in:
parent
821f80da0f
commit
12f6cfcb80
@ -33,6 +33,7 @@ const MetaFixedItem = ({ name, value }: { name: string; value: string }) => (
|
||||
|
||||
export default function AssetDetails({ metadata, ddo }: AssetDetailsProps) {
|
||||
const { base } = metadata
|
||||
const price = base.price && Web3.utils.fromWei(base.price.toString())
|
||||
|
||||
const metaFixed = [
|
||||
{
|
||||
@ -52,11 +53,7 @@ export default function AssetDetails({ metadata, ddo }: AssetDetailsProps) {
|
||||
},
|
||||
{
|
||||
name: 'Price',
|
||||
value: `${
|
||||
base.price === '0'
|
||||
? 0
|
||||
: Web3.utils.fromWei(base.price.toString())
|
||||
} OCEAN`,
|
||||
value: `${price === '0' ? 0 : price} OCEAN`,
|
||||
show: allowPricing
|
||||
}
|
||||
]
|
||||
|
@ -16,6 +16,5 @@ describe('Details', () => {
|
||||
/>
|
||||
)
|
||||
expect(container.firstChild).toBeInTheDocument()
|
||||
expect(container.querySelector('.loader')).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user