fix: don't show insufficient credits message on my own claims
This commit is contained in:
parent
58f655ae85
commit
0b4919db3f
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue