From 1bd142caa16e279d4cb446382291feae9226d8bd Mon Sep 17 00:00:00 2001 From: jessop Date: Wed, 15 Apr 2020 11:51:08 -0400 Subject: [PATCH 1/2] fix empty channel claims --- dist/bundle.es.js | 2 +- src/redux/reducers/claims.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 1bf5a80..7f8640b 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -5044,7 +5044,7 @@ reducers[FETCH_CHANNEL_LIST_COMPLETED] = (state, action) => { if (!claims.length) { // $FlowFixMe - myChannelClaims = null; + myChannelClaims = []; } else { myChannelClaims = new Set(state.myChannelClaims); claims.forEach(claim => { diff --git a/src/redux/reducers/claims.js b/src/redux/reducers/claims.js index 2198011..d72cde4 100644 --- a/src/redux/reducers/claims.js +++ b/src/redux/reducers/claims.js @@ -220,7 +220,7 @@ reducers[ACTIONS.FETCH_CHANNEL_LIST_COMPLETED] = (state: State, action: any): St if (!claims.length) { // $FlowFixMe - myChannelClaims = null; + myChannelClaims = []; } else { myChannelClaims = new Set(state.myChannelClaims); claims.forEach(claim => { -- 2.45.2 From 5994f9fb9ebf66b8c685b069abbf184e70ba55f8 Mon Sep 17 00:00:00 2001 From: jessop Date: Wed, 15 Apr 2020 13:36:29 -0400 Subject: [PATCH 2/2] add txo exclude internal transfers constant --- dist/bundle.es.js | 2 ++ src/constants/txo_list.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 1bf5a80..1716cfb 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -797,6 +797,7 @@ const IS_MY_INPUT = 'is_my_input'; const IS_MY_OUTPUT = 'is_my_output'; const IS_NOT_MY_INPUT = 'is_not_my_input'; const IS_NOT_MY_OUTPUT = 'is_not_my_output'; // use to further distinguish payments to self / from self. +const EXCLUDE_INTERNAL_TRANSFERS = 'exclude_internal_transfers'; // sdk unique types const OTHER$1 = 'other'; @@ -829,6 +830,7 @@ var txo_list = /*#__PURE__*/Object.freeze({ IS_MY_OUTPUT: IS_MY_OUTPUT, IS_NOT_MY_INPUT: IS_NOT_MY_INPUT, IS_NOT_MY_OUTPUT: IS_NOT_MY_OUTPUT, + EXCLUDE_INTERNAL_TRANSFERS: EXCLUDE_INTERNAL_TRANSFERS, OTHER: OTHER$1, STREAM: STREAM, PAGE_SIZE_DEFAULT: PAGE_SIZE_DEFAULT diff --git a/src/constants/txo_list.js b/src/constants/txo_list.js index b143bef..afd28f9 100644 --- a/src/constants/txo_list.js +++ b/src/constants/txo_list.js @@ -26,10 +26,10 @@ export const IS_MY_INPUT = 'is_my_input'; export const IS_MY_OUTPUT = 'is_my_output'; export const IS_NOT_MY_INPUT = 'is_not_my_input'; export const IS_NOT_MY_OUTPUT = 'is_not_my_output'; // use to further distinguish payments to self / from self. +export const EXCLUDE_INTERNAL_TRANSFERS = 'exclude_internal_transfers'; // sdk unique types export const OTHER = 'other'; export const STREAM = 'stream'; export const PAGE_SIZE_DEFAULT = 20; - -- 2.45.2