From ae7619431b4331bb5fa359e76195734c56fe64c9 Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Tue, 10 Jan 2017 13:19:18 +0100 Subject: [PATCH] Fix Signer (#4104) --- .../transactionPendingFormConfirm.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js b/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js index 45eb3e5dd76..5a93cef0d93 100644 --- a/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js +++ b/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js @@ -247,13 +247,13 @@ class TransactionPendingFormConfirm extends Component { } } -function mapStateToProps (initState, initProps) { - const { accounts } = initState.personal; +function mapStateToProps (_, initProps) { const { address } = initProps; - const account = accounts[address] || {}; + return (state) => { + const { accounts } = state.personal; + const account = accounts[address] || {}; - return () => { return { account }; }; }