Skip to content

Commit

Permalink
fix(coinify checkout remaining sell limit)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed May 30, 2018
1 parent e710f32 commit 10cf915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class QuoteInput extends Component {
setMin={setMin}
checkoutError={checkoutError}
increaseLimit={increaseLimit}
type={type}
/>
},
Failure: (msg) => <div>Failure: {msg.error}</div>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const getLimitsError = (errorType, limits, symbol, setMin) => {
}

const FiatConvertor = (props) => {
const { val, disabled, setMax, setMin, limits, checkoutError, defaultCurrency, symbol, increaseLimit } = props
const { val, disabled, setMax, setMin, limits, checkoutError, defaultCurrency, symbol, increaseLimit, type } = props
const currency = 'BTC'
const level = val.level || { name: 1 }
const kyc = val.kycs.length && head(val.kycs)
Expand All @@ -111,10 +111,11 @@ const FiatConvertor = (props) => {
} else {
return (
<LimitsHelper>
<FormattedMessage id='buy.quote_input.remaining_buy_limit' defaultMessage='Your remaining buy limit is {max}' values={{ max: <a onClick={() => setMax(limits.max)}>{symbol}{limits.max}</a> }} />
<FormattedMessage id='buysell.quote_input.remaining_buy_limit' defaultMessage='Your remaining {type} limit is' values={{ type }} />
<a onClick={() => setMax(limits.max)}>{symbol}{limits.max}</a>
{
level.name < 2 && kyc.state !== 'reviewing'
? <FormattedMessage id='buy.quote_input.increase_limits' defaultMessage='{increase}' values={{ increase: <a onClick={() => increaseLimit()}>Increase your limit.</a> }} />
? <FormattedMessage id='buysell.quote_input.increase_limits' defaultMessage='{increase}' values={{ increase: <a onClick={() => increaseLimit()}>Increase your limit.</a> }} />
: null
}
</LimitsHelper>
Expand Down

0 comments on commit 10cf915

Please sign in to comment.