Skip to content

Commit

Permalink
fix(SFOX): do not fetch quote if amount over max limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Welber committed May 29, 2018
1 parent 8bbd12c commit 23856de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ class QuoteInput extends Component {

fetchQuote = () => {
let quote = this.getQuoteValues()
if ((quote.amt / 100) < this.props.limits.min) return
let amt = quote.amt / 100
let { min, max } = this.props.limits
if (amt > max || amt < min) return
this.props.onFetchQuote(quote)
}

Expand Down

0 comments on commit 23856de

Please sign in to comment.