Skip to content

Commit

Permalink
incomplete events added.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurrahmanekr committed Nov 24, 2017
1 parent 992de83 commit 15d4b2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FileMessage/FileMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ const Circle = ProgressBar.Circle;

export class FileMessage extends Component {

onClick() {
onClick(e) {
if (!this.props.data.status)
return;

if (!this.props.data.status.download && this.props.onDownload instanceof Function)
this.props.onDownload();
this.props.onDownload(e);
else if (this.props.data.status.download && this.props.onOpen instanceof Function)
this.props.onOpen();
this.props.onOpen(e);
}

render() {
Expand Down

0 comments on commit 15d4b2e

Please sign in to comment.