From 3c9410439b26d6187def8dc23ff1db919ef6dd9e Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Mon, 20 Nov 2017 17:16:57 -0500 Subject: [PATCH] fix empty claims breaking transaction screens #755 --- CHANGELOG.md | 1 + ui/js/redux/selectors/claims.js | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e38d8ff41..f25911503 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/ui/js/redux/selectors/claims.js b/ui/js/redux/selectors/claims.js index fead14b85..5b1c7bbc0 100644 --- a/ui/js/redux/selectors/claims.js +++ b/ui/js/redux/selectors/claims.js @@ -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(