From 6d48e5b36b926135edac59e7e2f83ee1e2f75537 Mon Sep 17 00:00:00 2001 From: Daniel Kaspo Date: Mon, 12 Jun 2017 15:58:29 -0400 Subject: [PATCH] Changing how we handle event functions. --- .../containers/Tabs/WalletDecrypt/KeystoreDecrypt/index.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/containers/Tabs/WalletDecrypt/KeystoreDecrypt/index.jsx b/common/containers/Tabs/WalletDecrypt/KeystoreDecrypt/index.jsx index 780815a0..29c39cc8 100644 --- a/common/containers/Tabs/WalletDecrypt/KeystoreDecrypt/index.jsx +++ b/common/containers/Tabs/WalletDecrypt/KeystoreDecrypt/index.jsx @@ -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];