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