@@ -11,7 +11,7 @@ function getDisplayName(WrappedComponent) {
1111const defaultMapStateToProps = ( ) => ( { } ) ;
1212export default function connect ( mapStateToProps ) {
1313 const shouldSubscribe = ! ! mapStateToProps ;
14- const finnalMapStateToProps = mapStateToProps || defaultMapStateToProps ;
14+ const finalMapStateToProps = mapStateToProps || defaultMapStateToProps ;
1515 return function wrapWithConnect ( WrappedComponent ) {
1616 const tempProps = omit ( WrappedComponent . props || { } , [ 'store' ] ) ;
1717 const props = {
@@ -30,13 +30,13 @@ export default function connect(mapStateToProps) {
3030 this . store = this . storeContext . store ;
3131 this . preProps = omit ( getOptionProps ( this ) , [ '__propsSymbol__' ] ) ;
3232 return {
33- subscribed : finnalMapStateToProps ( this . store . getState ( ) , this . $props ) ,
33+ subscribed : finalMapStateToProps ( this . store . getState ( ) , this . $props ) ,
3434 } ;
3535 } ,
3636 watch : {
3737 __propsSymbol__ ( ) {
3838 if ( mapStateToProps && mapStateToProps . length === 2 ) {
39- this . subscribed = finnalMapStateToProps ( this . store . getState ( ) , this . $props ) ;
39+ this . subscribed = finalMapStateToProps ( this . store . getState ( ) , this . $props ) ;
4040 }
4141 } ,
4242 } ,
@@ -53,7 +53,7 @@ export default function connect(mapStateToProps) {
5353 return ;
5454 }
5555 const props = omit ( getOptionProps ( this ) , [ '__propsSymbol__' ] ) ;
56- const nextSubscribed = finnalMapStateToProps ( this . store . getState ( ) , props ) ;
56+ const nextSubscribed = finalMapStateToProps ( this . store . getState ( ) , props ) ;
5757 if (
5858 ! shallowEqual ( this . preProps , props ) ||
5959 ! shallowEqual ( this . subscribed , nextSubscribed )
0 commit comments