Permalink
Browse files

fix(pay): dont focus on value input

  • Loading branch information...
JimmyMow committed Sep 5, 2018
1 parent 07a070b commit 161fec013326c4069c630e70ebe4ba282dc0f736
Showing with 0 additions and 6 deletions.
  1. +0 −6 app/components/Form/Pay.js
@@ -14,17 +14,11 @@ import styles from './Pay.scss'
class Pay extends Component {
componentDidUpdate(prevProps) {
const {
isOnchain,
isLn,
payform: { payInput },
fetchInvoice
} = this.props
// If on-chain, focus on amount to let user know it's editable
if (isOnchain) {
this.amountInput.focus()
}
// If LN go retrieve invoice details
if (prevProps.payform.payInput !== payInput && isLn) {
fetchInvoice(payInput)

0 comments on commit 161fec0

Please sign in to comment.