Skip to content

Commit

Permalink
fix(Exchange): only check amount above max if max exists
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jan 9, 2019
1 parent 589c4d6 commit 767353f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const isAmountBelowMinimum = (value, minimum) => {
}

export const isAmountAboveMaximum = (value, maximum) => {
return new BigNumber(value).greaterThan(new BigNumber(maximum))
return maximum && new BigNumber(value).greaterThan(new BigNumber(maximum))
}

export const calculateFinalAmount = (value, fee) => {
Expand Down

0 comments on commit 767353f

Please sign in to comment.