Skip to content
Snippets Groups Projects
Unverified Commit c2c51768 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2180 from OpenTechFund/feature/fix-invariant-npm-issue

Add invariant package in package.json
parents 5e79f58c 71bcfb3f
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,8 @@ class ScreeningStatusContainer extends React.PureComponent { ...@@ -46,7 +46,8 @@ class ScreeningStatusContainer extends React.PureComponent {
visibleOptions, visibleOptions,
selectVisibleOption } = this.props selectVisibleOption } = this.props
return !screeningInfo.loading ? screeningStatuses && <SidebarBlock title="Screening Status" > return !screeningInfo.loading ?
screeningStatuses && defaultOptions.yes && defaultOptions.no ? <SidebarBlock title="Screening Status" >
<div className="screening-status-box" style={{ padding: '1rem'}}> <div className="screening-status-box" style={{ padding: '1rem'}}>
<div className="screening-default-options" > <div className="screening-default-options" >
<div <div
...@@ -95,7 +96,8 @@ class ScreeningStatusContainer extends React.PureComponent { ...@@ -95,7 +96,8 @@ class ScreeningStatusContainer extends React.PureComponent {
} }
</div> </div>
</SidebarBlock> : <LoadingPanel /> </SidebarBlock> : null
: <LoadingPanel />
} }
} }
...@@ -105,7 +107,7 @@ ScreeningStatusContainer.propTypes = { ...@@ -105,7 +107,7 @@ ScreeningStatusContainer.propTypes = {
selectDefautValue: PropTypes.func, selectDefautValue: PropTypes.func,
defaultOptions: PropTypes.object, defaultOptions: PropTypes.object,
screeningInfo: PropTypes.object, screeningInfo: PropTypes.object,
visibleOptions: PropTypes.object, visibleOptions: PropTypes.array,
selectVisibleOption: PropTypes.func, selectVisibleOption: PropTypes.func,
submissionID : PropTypes.number, submissionID : PropTypes.number,
screeningStatuses: PropTypes.array screeningStatuses: PropTypes.array
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
"gulp-touch-cmd": "0.0.1", "gulp-touch-cmd": "0.0.1",
"gulp-uglify": "^3.0.2", "gulp-uglify": "^3.0.2",
"humps": "^2.0.1", "humps": "^2.0.1",
"invariant": "^2.2.4",
"js-cookie": "^2.2.0", "js-cookie": "^2.2.0",
"lodash.isequal": "^4.5.0", "lodash.isequal": "^4.5.0",
"lodash.pick": "^4.4.0", "lodash.pick": "^4.4.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment