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 7e77c20 commit 01ec65c
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 01ec65c

Please sign in to comment.