Refresh claims fix #246
2 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||||
|
|
|
@ -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>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue