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

fix(faraday-selectors): change condition for showing the editorial recommendation contextual box

parent 8e643d43
No related branches found
No related tags found
3 merge requests!160Update staging with master features,!150Develop,!139Hin 1054
...@@ -371,22 +371,7 @@ export const canMakeHERecommendation = (state, { collection, statuses }) => { ...@@ -371,22 +371,7 @@ export const canMakeHERecommendation = (state, { collection, statuses }) => {
if (!(statusImportance > 1 && statusImportance < 9)) return false if (!(statusImportance > 1 && statusImportance < 9)) return false
if (collection.fragments.length !== 1) { return true
const previousFragmentId =
collection.fragments[collection.fragments.length - 2]
const previousRecommendationType = chain(state)
.get(`fragments.${previousFragmentId}.recommendations`, [])
.find(
recommendation =>
recommendation.recommendationType === 'editorRecommendation',
)
.get('recommendation', '')
.value()
if (previousRecommendationType === 'minor') {
return true
}
}
} }
export const getFragmentAuthorResponse = (state, fragmentId) => export const getFragmentAuthorResponse = (state, fragmentId) =>
......
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