Skip to content

Commit

Permalink
feat: fixed validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Jul 20, 2020
1 parent 685856a commit 3c7d680
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -42,7 +42,7 @@ export const maximumAmount = (
const { pair, method } = restProps
if (!method) return true

return Number(value) > Number(getMaxMin(pair, 'max', allValues))
return Number(value) > Number(getMaxMin(pair, 'max', allValues, method))
? 'ABOVE_MAX'
: false
}
Expand All @@ -57,7 +57,7 @@ export const minimumAmount = (
const { pair, method } = restProps
if (!method) return true

return Number(value) < Number(getMaxMin(pair, 'min', allValues))
return Number(value) < Number(getMaxMin(pair, 'min', allValues, method))
? 'BELOW_MIN'
: false
}

0 comments on commit 3c7d680

Please sign in to comment.