Skip to content
Snippets Groups Projects
Commit df948429 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

forgot a true

parent 141d3312
No related branches found
No related tags found
1 merge request!13Sprint #14
......@@ -28,7 +28,7 @@ const SideBarActions = ({
canMakeRecommendation,
}) => (
<Root>
{true && (
{canMakeRevision && (
<DecisionButton onClick={createRevision}>Submit revision</DecisionButton>
)}
{canMakeDecision && (
......
......@@ -5,6 +5,7 @@ import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import styled from 'styled-components'
import { withRouter } from 'react-router-dom'
import { selectCurrentVersion } from 'xpub-selectors'
import {
compose,
withState,
......@@ -82,9 +83,10 @@ export default compose(
withRouter,
getContext({ version: PropTypes.object, project: PropTypes.object }),
connect(
state => ({
(state, { project }) => ({
error: getAuthorError(state),
currentUser: get(state, 'currentUser.user'),
version: selectCurrentVersion(state, project),
authorForm: wizardSelector(state, 'authorForm'),
}),
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment