Skip to content

Commit 33900f2

Browse files
fix: Change double amp render to ternary
1 parent 4cfbcff commit 33900f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/shared/ContentsTable/DisplayTypeButton/DisplayTypeButton.jsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ function DisplayTypeButton({ dataLength, isLoading }) {
4242
onChange={(option) => handleOnChange(option)}
4343
/>
4444
{!isLoading &&
45-
active?.displayType === displayTypeParameter.list &&
46-
!!dataLength && <span>{dataLength} total files</span>}
45+
active?.displayType === displayTypeParameter.list &&
46+
!!dataLength ? (
47+
<span>{dataLength} total files</span>
48+
) : null}
4749
</div>
4850
)
4951
}

0 commit comments

Comments
 (0)