1
0
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:
Bogdan Fazakas 2022-04-28 10:18:20 +03:00
commit 290e339fb1
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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)