1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
mihaisc 2020-10-27 20:03:19 +02:00
parent 70caeb5d80
commit ae84db194c
No known key found for this signature in database
GPG Key ID: 4FB0C2329B4C6E29
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ export default function FormPricing({
function handleTabChange(tabName: string) {
const type = tabName.toLowerCase()
setFieldValue('type', type)
type == 'fixed' && setFieldValue('dtAmount', 1000)
type === 'fixed' && setFieldValue('dtAmount', 1000)
}
// Always update everything when price value changes

View File

@ -29,7 +29,7 @@ export default function AssetContent({
const { dtSymbol, dtName } = usePricing(ddo)
const isOwner = accountId === ddo.publicKey[0].owner
const hasNoPrice = ddo.price.datatoken == 0 && ddo.price.value == 0
const hasNoPrice = ddo.price.datatoken === 0 && ddo.price.value === 0
const showPricing = isOwner && hasNoPrice
return (