Fixed inconsistencies

This commit is contained in:
hackrush 2017-11-22 23:54:45 +05:30
parent 521703a816
commit bb9e474ad4
3 changed files with 4 additions and 6 deletions

View file

@ -1,6 +1,6 @@
import * as types from "constants/action_types";
import lbry from "lbry";
import { doFetchClaimListMine, doAbandonClaim, doResolveUri } from "redux/actions/content";
import { doFetchClaimListMine, doAbandonClaim } from "redux/actions/content";
import {
selectClaimsByUri,
selectIsFetchingClaimListMine,

View file

@ -194,8 +194,6 @@ export const selectMyClaimSdHashesByOutpoint = createSelector(
myClaims => {
const sdHashByOutpoint = {};
console.log(myClaims);
myClaims.forEach(claim => {
sdHashByOutpoint[`${claim.txid}:${claim.nout}`] =
claim.value.stream.source.source;

View file

@ -143,11 +143,11 @@ export const selectDownloadingFileInfos = createSelector(
selectDownloadingBySdHash,
selectFileInfosBySdHash,
(downloadingBySdHash, fileInfosBySdHash) => {
const sd_hashes = Object.keys(downloadingBySdHash);
const sdHashes = Object.keys(downloadingBySdHash);
const fileInfos = [];
sd_hashes.forEach(sd_hash => {
const fileInfo = fileInfosBySdHash[sd_hash];
sdHashes.forEach(sdHash => {
const fileInfo = fileInfosBySdHash[sdHash];
if (fileInfo) fileInfos.push(fileInfo);
});