Changing how we handle event functions.

This commit is contained in:
Daniel Kaspo 2017-06-12 15:58:29 -04:00
parent 37e78df682
commit 6d48e5b36b
1 changed files with 1 additions and 3 deletions

View File

@ -6,11 +6,9 @@ import ethUtil from 'ethereumjs-util';
export default class KeystoreDecrypt extends Component {
constructor(props) {
super(props);
this.handleFileSelection = this.handleFileSelection.bind(this);
}
handleFileSelection(event) {
handleFileSelection = (event) => {
const fileReader = new FileReader();
const inputFile = event.target.files[0];