Fix delete button not showing on own claim
We should show the delete button for own claims as well.
This commit is contained in:
parent
f6a3b71fcf
commit
a457574a6f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ type Props = {
|
|||
class FileActions extends React.PureComponent<Props> {
|
||||
render() {
|
||||
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 (
|
||||
<React.Fragment>
|
||||
|
|
Loading…
Reference in a new issue