fix: don't show insufficient credits message on my own claims

This commit is contained in:
Sean Yesmunt 2019-04-19 13:56:58 -04:00
parent 58f655ae85
commit 0b4919db3f

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">