diff --git a/frontend/src/containers/services/index.js b/frontend/src/containers/services/index.js index 4fb01b14..f2027a40 100644 --- a/frontend/src/containers/services/index.js +++ b/frontend/src/containers/services/index.js @@ -24,7 +24,7 @@ const Services = (props) => { // TODO: Move into "components" and fix absolute // positioning on responsive screens - const instances = (instances = 1) => { + const instances = (instances = 0) => { const StyledButton = Styled(Button)` position: absolute; @@ -32,7 +32,7 @@ const Services = (props) => { right: 193px; `; - if ( instances.length <= 0 ) return; + if ( instances.length <= 0 || instances <= 0 ) return; return ( You have 5 instances diff --git a/frontend/src/containers/services/list.js b/frontend/src/containers/services/list.js index 89afc75b..98d8925c 100644 --- a/frontend/src/containers/services/list.js +++ b/frontend/src/containers/services/list.js @@ -55,7 +55,7 @@ class Services extends React.Component { }); }; - const instances = 5; + const instances = null; const serviceList = services.map((service) => (