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

Commit

Permalink
fix(lnd): properly handle node updates from chan graph sub
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 25, 2020
1 parent 564e3ab commit b7a84ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderer/reducers/network/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const initialState = {
export const updateNodeData = nodes => {
return {
type: UPDATE_NODE_DATA,
nodes,
data: nodes,
// enable debounce for this action
debounce: {
wait: 2000,
Expand Down Expand Up @@ -94,7 +94,7 @@ export const fetchDescribeNetwork = () => async dispatch => {
// ------------------------------------

const ACTION_HANDLERS = {
[UPDATE_NODE_DATA]: (state, { nodes }) => nodes.flat().reduce(mergeNodeUpdates, state),
[UPDATE_NODE_DATA]: (state, { data: nodes }) => nodes.flat().reduce(mergeNodeUpdates, state),
[GET_DESCRIBE_NETWORK]: state => {
state.networkLoading = true
},
Expand Down

0 comments on commit b7a84ff

Please sign in to comment.