From 412982e856a319138a5012f513ec0ec4591ca5b2 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Sat, 2 Sep 2017 20:19:37 -0500 Subject: [PATCH] hotfix(pay-form): switch pay form value from hard-coded BTC conditional --- app/routes/app/components/components/Form/Form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/app/components/components/Form/Form.js b/app/routes/app/components/components/Form/Form.js index a286f67d..38c3c963 100644 --- a/app/routes/app/components/components/Form/Form.js +++ b/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 (