minor fixes

This commit is contained in:
Jeremy Kauffman 2017-09-03 13:21:23 -04:00
parent 86c7bda9c8
commit 7a5f3c606d
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,8 @@ import {
} from "selectors/file_info";
import { makeSelectIsAvailableForUri } from "selectors/availability";
import { makeSelectCostInfoForUri } from "selectors/cost_info";
import { doCloseModal, doOpenModal, doNavigate } from "actions/app";
import { doCloseModal, doOpenModal } from "actions/app";
import { doNavigate } from "actions/navigation";
import { doFetchAvailability } from "actions/availability";
import { doOpenFileInShell, doOpenFileInFolder } from "actions/file_info";
import {

View file

@ -53,8 +53,7 @@ const selectClaimForUriIsMine = (state, props) => {
const uri = lbryuri.normalize(props.uri);
const claim = selectClaimsByUri(state)[uri];
const myClaims = selectMyClaimsRaw(state);
return myClaims.has(claim.claim_id);
return myClaims && myClaims.has(claim.claim_id);
};
export const makeSelectClaimForUriIsMine = () => {