General fixes from routing/lbry.tv changes #2437

Merged
neb-b merged 12 commits from fixes into master 2019-04-24 16:01:18 +02:00
Showing only changes of commit 0b4919db3f - Show all commits

View file

@ -151,7 +151,7 @@ class FilePage extends React.Component<Props> {
mediaType,
contentType,
fileName,
})
});
const showFile =
PLAYABLE_MEDIA_TYPES.includes(mediaType) || PREVIEW_MEDIA_TYPES.includes(mediaType);
@ -176,7 +176,7 @@ class FilePage extends React.Component<Props> {
editUri = buildURI(uriObject);
}
const insufficientCredits = costInfo && costInfo.cost > balance;
const insufficientCredits = !claimIsMine && costInfo && costInfo.cost > balance;
return (
<Page notContained className="main--file-page">