Skip to content

Commit

Permalink
fix: threshold check adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 8, 2020
1 parent 4039695 commit a832332
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/pages/src/ClassicPage/ClassicPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export const ClassicPage: FC = () => {
: 0;
const splitControls =
controlsCount > 0 &&
controlsCount < threshold &&
controlsCount <= threshold &&
(propsCount === 0 ||
(controlsCount < propsCount && propsCount > threshold));
(controlsCount < propsCount && propsCount >= threshold));
return (
<div>
<PackageVersion />
Expand All @@ -52,7 +52,7 @@ export const ClassicPage: FC = () => {
<PropsTable
of="."
title="Properties"
flat={propsCount < threshold}
flat={propsCount <= threshold}
visibility={splitControls ? 'info' : 'all'}
/>
<ComponentDeps id="." title="External dependencies" />
Expand Down

0 comments on commit a832332

Please sign in to comment.