diff --git a/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js b/js/src/views/Signer/components/TransactionPendingForm/TransactionPendingFormConfirm/transactionPendingFormConfirm.js index 45eb3e5dd..5a93cef0d 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 }; }; }