Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 7ae4e64

Browse files
committed
Update Channels on Payment
1 parent b74351d commit 7ae4e64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/lightning-core/pay/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { actions as accountsActions } from '../accounts'
77
import { CurrencyInput, Head, Input, Page } from '../common'
88
import { sanitizePaymentRequest } from '../helpers'
99

10-
export const Pay = ({ onMakePayment, onDecodePaymentRequest, onEditForm, onFetchAccount }) => {
10+
export const Pay = ({ onMakePayment, onDecodePaymentRequest, onEditForm,
11+
onFetchAccount, onFetchChannels }) => {
1112
const fields = [
1213
{
1314
name: 'address',
@@ -27,6 +28,7 @@ export const Pay = ({ onMakePayment, onDecodePaymentRequest, onEditForm, onFetch
2728
onMakePayment({ address, amount })
2829
.then(() => {
2930
onFetchAccount()
31+
onFetchChannels()
3032
clear()
3133
})
3234
// eslint-disable-next-line no-console
@@ -75,6 +77,7 @@ export default connect(
7577
onDecodePaymentRequest: actions.decodePaymentRequest,
7678
onEditForm: formActions.editForm,
7779
onFetchAccount: accountsActions.fetchAccount,
80+
onFetchChannels: accountsActions.fetchChannels,
7881
}
7982
)(Pay)
8083

0 commit comments

Comments
 (0)