mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
merge feature/v4 into feature/v4-c2d
This commit is contained in:
commit
290e339fb1
@ -153,7 +153,7 @@ export default function Download({
|
||||
LoggerInstance.error(error)
|
||||
const message = isOwned
|
||||
? 'Failed to download file!'
|
||||
: 'Failed to buy datatoken from pool!'
|
||||
: 'An error occurred. Check console for more information.'
|
||||
toast.error(message)
|
||||
}
|
||||
setIsLoading(false)
|
||||
|
@ -85,6 +85,7 @@ const validationPricing = {
|
||||
amountDataToken: Yup.number().required('Required'),
|
||||
amountOcean: Yup.number()
|
||||
.test('validator-min-amountOcean', '', function (value) {
|
||||
if (this.parent.type === 'fixed') return true
|
||||
const minValue =
|
||||
this.parent.price > 0
|
||||
? new Decimal(this.parent.price)
|
||||
|
Loading…
Reference in New Issue
Block a user