From 30141bce8eb65badc5815df03ff0c40e36de58f6 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 4 Mar 2019 11:57:07 -0500 Subject: [PATCH 1/2] fix: normalization changes --- src/renderer/page/show/view.jsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/renderer/page/show/view.jsx b/src/renderer/page/show/view.jsx index ba96725aa..a76abdbf8 100644 --- a/src/renderer/page/show/view.jsx +++ b/src/renderer/page/show/view.jsx @@ -42,17 +42,22 @@ class ShowPage extends React.PureComponent { let innerContent = ''; - if ((isResolvingUri && !claim) || !claim) { + if (isResolvingUri || !claim || !claim.name) { + if (claim && !claim.name) { + // While testing the normalization changes, Brannon found that `name` was missing sometimes + // This shouldn't happen, so hopefully this helps track it down + console.error('No name for associated claim: ', claim.claim_id); + } + innerContent = ( {isResolvingUri && } - {claim === null && - !isResolvingUri && ( - {__("There's nothing at this location.")} - )} + {!isResolvingUri && ( + {__("There's nothing available at this location.")} + )} ); - } else if (claim && claim.name.length && claim.name[0] === '@') { + } else if (claim.name.length && claim.name[0] === '@') { innerContent = ; } else if (claim && blackListedOutpoints) { let isClaimBlackListed = false; From 409cf4e83b587d69440fbb218c3b068efbe44b24 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 4 Mar 2019 12:06:10 -0500 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a90dfcc0..d32878837 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.30.0] - [Unreleased] + +### Added + +### Changed + +- Minor changes for normalization hardfork ([#2297](https://github.com/lbryio/lbry-desktop/pull/2297)) + +### Fixed + ## [0.29.1] - 2019-3-1 ### Fixed