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

Commit

Permalink
Merge pull request #745 from LN-Zap/fix/pay-onchain
Browse files Browse the repository at this point in the history
fix(pay): dont focus on value input
  • Loading branch information
mrfelton committed Sep 5, 2018
2 parents d42987b + 161fec0 commit 7ac9d7c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/components/Form/Pay.js
Original file line number Diff line number Diff line change
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 7ac9d7c

Please sign in to comment.