Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycuadra committed Oct 8, 2024
1 parent 969d481 commit ffde1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ local function connect<StoreState, Props, MappedStatePartialProps, MappedDispatc
-- instead of the original mapStateToProps. This matches react-redux
-- and enables connectors to keep instance-level state.
if isCallable(mappedStoreState) then
mapStateToProps = mappedStoreState
mapStateToProps = mappedStoreState :: any
mappedStoreState = mapStateToProps(storeState, self.props.innerProps)
end

Expand Down

0 comments on commit ffde1e4

Please sign in to comment.