Include updated channels in results

Channels may be updated with new bids and will appear as "update" in channel_list. This would also occur if claims were sent from one user to another (i.e. us transferring a channel to a youtuber).
This commit is contained in:
Thomas Zarebczan 2018-03-19 18:48:22 -04:00 committed by GitHub
parent f50a0b7644
commit bf3ed1f28e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ reducers[ACTIONS.FETCH_CLAIM_LIST_MINE_COMPLETED] = (state, action) => {
const byId = Object.assign({}, state.byId);
const pendingById = Object.assign({}, state.pendingById);
claims.filter(claim => claim.category && claim.category.match(/claim/)).forEach(claim => {
claims.filter(claim => claim.category && (claim.category.match(/claim/) || claim.category.match(/update/))).forEach(claim => {
byId[claim.claim_id] = claim;
const pending = Object.values(pendingById).find(