Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit edfe6f7

Browse files
committed
refactor: Use anon function declaration, fixes PR comment
1 parent 0bade21 commit edfe6f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pages/maker/magic-link.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ const mapStateToProps = (state) => ({
115115
apiServer: selectApiServer(state)
116116
})
117117

118-
function mapDispatchToProps(dispatch) {
119-
return bindActionCreators(Object.assign({}, UserStore.actions), dispatch)
120-
}
118+
const mapDispatchToProps = (dispatch) => bindActionCreators({ ...UserStore.actions }, dispatch)
121119

122120
export default connect(mapStateToProps, mapDispatchToProps)(MakerMagicLink)

0 commit comments

Comments
 (0)