Fix delete button not showing on own claim

We should show the delete button for own claims as well.
This commit is contained in:
Thomas Zarebczan 2018-12-15 19:39:24 -05:00
parent f6a3b71fcf
commit a457574a6f

View file

@ -20,7 +20,7 @@ type Props = {
class FileActions extends React.PureComponent<Props> { class FileActions extends React.PureComponent<Props> {
render() { render() {
const { fileInfo, uri, openModal, claimIsMine, claimId } = this.props; const { fileInfo, uri, openModal, claimIsMine, claimId } = this.props;
const showDelete = fileInfo && Object.keys(fileInfo).length > 0; const showDelete = (claimIsMine || (fileInfo && Object.keys(fileInfo).length > 0)) ;
return ( return (
<React.Fragment> <React.Fragment>