Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(pay): dont focus on value input
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyMow committed Sep 5, 2018
1 parent 07a070b commit 161fec0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/components/Form/Pay.js
Expand Up @@ -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)
Expand Down

0 comments on commit 161fec0

Please sign in to comment.