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 = ({ ...@@ -28,7 +28,7 @@ const SideBarActions = ({
canMakeRecommendation, canMakeRecommendation,
}) => ( }) => (
<Root> <Root>
{true && ( {canMakeRevision && (
<DecisionButton onClick={createRevision}>Submit revision</DecisionButton> <DecisionButton onClick={createRevision}>Submit revision</DecisionButton>
)} )}
{canMakeDecision && ( {canMakeDecision && (
......
...@@ -5,6 +5,7 @@ import PropTypes from 'prop-types' ...@@ -5,6 +5,7 @@ import PropTypes from 'prop-types'
import { connect } from 'react-redux' import { connect } from 'react-redux'
import styled from 'styled-components' import styled from 'styled-components'
import { withRouter } from 'react-router-dom' import { withRouter } from 'react-router-dom'
import { selectCurrentVersion } from 'xpub-selectors'
import { import {
compose, compose,
withState, withState,
...@@ -82,9 +83,10 @@ export default compose( ...@@ -82,9 +83,10 @@ export default compose(
withRouter, withRouter,
getContext({ version: PropTypes.object, project: PropTypes.object }), getContext({ version: PropTypes.object, project: PropTypes.object }),
connect( connect(
state => ({ (state, { project }) => ({
error: getAuthorError(state), error: getAuthorError(state),
currentUser: get(state, 'currentUser.user'), currentUser: get(state, 'currentUser.user'),
version: selectCurrentVersion(state, project),
authorForm: wizardSelector(state, 'authorForm'), 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