minor fixes
This commit is contained in:
parent
86c7bda9c8
commit
7a5f3c606d
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue