From 0b4919db3fd820a8b7cf4dddebcc24eed8ef23fc Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 19 Apr 2019 13:56:58 -0400 Subject: [PATCH] fix: don't show insufficient credits message on my own claims --- src/ui/page/file/view.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/page/file/view.jsx b/src/ui/page/file/view.jsx index ddd779975..36250354f 100644 --- a/src/ui/page/file/view.jsx +++ b/src/ui/page/file/view.jsx @@ -151,7 +151,7 @@ class FilePage extends React.Component { mediaType, contentType, fileName, - }) + }); const showFile = PLAYABLE_MEDIA_TYPES.includes(mediaType) || PREVIEW_MEDIA_TYPES.includes(mediaType); @@ -176,7 +176,7 @@ class FilePage extends React.Component { editUri = buildURI(uriObject); } - const insufficientCredits = costInfo && costInfo.cost > balance; + const insufficientCredits = !claimIsMine && costInfo && costInfo.cost > balance; return (