Browse Source

Merge branch 'fix/bugs' of https://github.com/LN-Zap/zap-desktop into fix/bugs

commit
renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
cf62cb7069
  1. 6
      app/reducers/address.js

6
app/reducers/address.js

@ -24,11 +24,15 @@ export function getAddress() {
// Send IPC event for getinfo
export const newAddress = type => async (dispatch) => {
dispatch(getAddress())
console.log('getting new address type: ', addressTypes[type])
ipcRenderer.send('lnd', { msg: 'newaddress', data: { type: addressTypes[type] } })
}
// Receive IPC event for info
export const receiveAddress = (event, address) => dispatch => dispatch({ type: RECEIVE_ADDRESS, address })
export const receiveAddress = (event, address) => dispatch => {
console.log('address: ', address)
dispatch({ type: RECEIVE_ADDRESS, address })
}
// ------------------------------------
// Action Handlers

Loading…
Cancel
Save