mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
This commit is contained in:
parent
70caeb5d80
commit
ae84db194c
@ -35,7 +35,7 @@ export default function FormPricing({
|
|||||||
function handleTabChange(tabName: string) {
|
function handleTabChange(tabName: string) {
|
||||||
const type = tabName.toLowerCase()
|
const type = tabName.toLowerCase()
|
||||||
setFieldValue('type', type)
|
setFieldValue('type', type)
|
||||||
type == 'fixed' && setFieldValue('dtAmount', 1000)
|
type === 'fixed' && setFieldValue('dtAmount', 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always update everything when price value changes
|
// Always update everything when price value changes
|
||||||
|
@ -29,7 +29,7 @@ export default function AssetContent({
|
|||||||
const { dtSymbol, dtName } = usePricing(ddo)
|
const { dtSymbol, dtName } = usePricing(ddo)
|
||||||
|
|
||||||
const isOwner = accountId === ddo.publicKey[0].owner
|
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
|
const showPricing = isOwner && hasNoPrice
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user