Browse Source

fix(copy, live updates): fix copy change, add timestamp to new invoices, dispatch fetch payments after successful payment

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
35f8235b68
  1. 2
      app/lnd/methods/index.js
  2. 2
      app/reducers/activity.js
  3. 2
      app/reducers/payment.js

2
app/lnd/methods/index.js

@ -86,7 +86,7 @@ export default function (lnd, event, msg, data) {
.then(newinvoice =>
event.sender.send(
'createdInvoice',
Object.assign(newinvoice, { memo: data.memo, value: data.value, r_hash: new Buffer(newinvoice.r_hash, 'hex').toString('hex') })
Object.assign(newinvoice, { memo: data.memo, value: data.value, r_hash: new Buffer(newinvoice.r_hash, 'hex').toString('hex'), creation_date: (Date.now() / 1000) })
)
)
.catch(error => console.log('addInvoice error: ', error))

2
app/reducers/activity.js

@ -5,7 +5,7 @@ import { createSelector } from 'reselect'
// ------------------------------------
const initialState = {
filterPulldown: false,
filter: { key: 'ALL_ACTIVITY', name: 'Activity' },
filter: { key: 'ALL_ACTIVITY', name: 'All Activity' },
filters: [
{ key: 'ALL_ACTIVITY', name: 'All Activity' },
{ key: 'LN_ACTIVITY', name: 'LN Activity' },

2
app/reducers/payment.js

@ -71,7 +71,7 @@ export const paymentSuccessful = () => (dispatch) => {
dispatch(setForm({ modalOpen: false }))
// Refetch payments (TODO: dont do a full refetch, rather append new tx to list)
fetchPayments()
dispatch(fetchPayments())
// Reset the payment form
dispatch(resetForm())

Loading…
Cancel
Save