fix empty claims breaking transaction screens #755

This commit is contained in:
Jeremy Kauffman 2017-11-20 17:16:57 -05:00
parent dd978109f6
commit 3c9410439b
2 changed files with 7 additions and 2 deletions

View file

@ -17,6 +17,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
### Fixed
* Long channel names causing inconsistent thumbnail sizes (#721)
* Fixed regression in #697 causing transaction screen to not load for new users (#755)
* Fixed scriolling restore/reset/set (#729)
### Deprecated

View file

@ -1,5 +1,4 @@
import { createSelector } from "reselect";
import { selectCurrentParams } from "redux/selectors/navigation";
import lbryuri from "lbryuri";
import { makeSelectCurrentParam } from "./navigation";
@ -171,7 +170,12 @@ export const selectMyClaimsWithoutChannels = createSelector(
export const selectAllMyClaimsByOutpoint = createSelector(
selectMyClaimsRaw,
claims => new Set(claims.map(claim => `${claim.txid}:${claim.nout}`))
claims =>
new Set(
claims && claims.length
? claims.map(claim => `${claim.txid}:${claim.nout}`)
: null
)
);
export const selectMyClaimsOutpoints = createSelector(