From 8e9543bf94ed676265b1edb4f59c8cddb0b8b3bb Mon Sep 17 00:00:00 2001 From: Alexander James Phillips Date: Thu, 25 May 2017 02:56:44 +0100 Subject: [PATCH] Update redux-form-tests.tsx Improve test examples use of state --- types/redux-form/redux-form-tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/redux-form/redux-form-tests.tsx b/types/redux-form/redux-form-tests.tsx index b575269143..d14b7a35cd 100644 --- a/types/redux-form/redux-form-tests.tsx +++ b/types/redux-form/redux-form-tests.tsx @@ -138,6 +138,6 @@ const DecoratedInitializeFromStateFormClass = reduxForm({ // You have to connect() to any reducers that you wish to connect to yourself const mapStateToProps = (state: any) => ({ - initialValues: { firstName: "some value" } // pull initial values from account reducer + initialValues: { firstName: state.account.data.firstName } // pull initial values from account reducer } as {initialValues?: Partial}); const ConnectedDecoratedInitializeFromStateFormClass = connect(mapStateToProps)(DecoratedInitializeFromStateFormClass);