Skip to content

Instantly share code, notes, and snippets.

@cpv123
Last active October 9, 2019 14:54
Show Gist options
  • Save cpv123/6bba8c665dced0073fd9147bdecf0da5 to your computer and use it in GitHub Desktop.
Save cpv123/6bba8c665dced0073fd9147bdecf0da5 to your computer and use it in GitHub Desktop.
const mapStateToProps = state => ({
basketContent: state.user.basket.filter(item => item.id !== null),
authetication: { isAuthenticated: state.user.isAuthenticated, ...state.user.adminRoles },
promoCodes: state.user.promoCodes.slice(0, 1)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment