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,
|
||||
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">
|
||||
|
|
Loading…
Reference in a new issue