Browse Source

hotfix(pay-form): switch pay form value from hard-coded BTC conditional

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
412982e856
  1. 2
      app/routes/app/components/components/Form/Form.js

2
app/routes/app/components/components/Form/Form.js

@ -34,7 +34,7 @@ const Form = ({
if (payreq.length === 124) { fetchInvoice(payreq) }
}
const calculateAmount = value => (currency === 'btc' ? btc.satoshisToBtc(value) : btc.satoshisToUsd(value, currentTicker.price_usd))
const calculateAmount = value => (currency === 'usd' ? btc.satoshisToUsd(value, currentTicker.price_usd) : btc.satoshisToBtc(value))
return (
<div className={`${styles.formContainer} ${isOpen ? styles.open : ''}`}>

Loading…
Cancel
Save