Skip to content

Commit

Permalink
PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevmatos committed Feb 13, 2020
1 parent d63818b commit f4d00ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions raiden-ts/src/transfers/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,11 @@ function channelCloseSuccessReducer(
): RaidenState {
let sent = state.sent;
for (const [secrethash, v] of Object.entries(sent)) {
const transfer = v.transfer[1];
if (
!v.transfer[1].channel_identifier.eq(action.payload.id) ||
v.transfer[1].recipient !== action.meta.partner ||
v.transfer[1].token_network_address !== action.meta.tokenNetwork
!transfer.channel_identifier.eq(action.payload.id) ||
transfer.recipient !== action.meta.partner ||
transfer.token_network_address !== action.meta.tokenNetwork
)
continue;
sent = { ...sent, [secrethash]: { ...v, channelClosed: timed(action.payload.txHash) } };
Expand Down

0 comments on commit f4d00ec

Please sign in to comment.