Refresh claims fix #246

Merged
6ea86b96 merged 2 commits from refresh-claims-fix into master 2017-06-16 23:19:53 +02:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit 5074b368ee - Show all commits

View file

@ -47,13 +47,11 @@ class FileCard extends React.PureComponent {
const { claim, fileInfo, metadata, isResolvingUri, navigate } = this.props; const { claim, fileInfo, metadata, isResolvingUri, navigate } = this.props;
const uri = lbryuri.normalize(this.props.uri); const uri = lbryuri.normalize(this.props.uri);
const title = !isResolvingUri && metadata && metadata.title const title = metadata && metadata.title ? metadata.title : uri;
? metadata.title
: uri;
const obscureNsfw = this.props.obscureNsfw && metadata && metadata.nsfw; const obscureNsfw = this.props.obscureNsfw && metadata && metadata.nsfw;
let description = ""; let description = "";
if (isResolvingUri) { if (isResolvingUri && !claim) {
description = __("Loading..."); description = __("Loading...");
} else if (metadata && metadata.description) { } else if (metadata && metadata.description) {
description = metadata.description; description = metadata.description;

View file

@ -21,7 +21,7 @@ class UriIndicator extends React.PureComponent {
render() { render() {
const { claim, uri, isResolvingUri } = this.props; const { claim, uri, isResolvingUri } = this.props;
if (isResolvingUri) { if (isResolvingUri && !claim) {
return <span className="empty">Validating...</span>; return <span className="empty">Validating...</span>;
} }