Skip to content

Commit e13227e

Browse files
authored
Merge pull request #160 from docker/fix-pluralize
Fix pluralize
2 parents 403dc97 + 4f539d4 commit e13227e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/ui/src/components/tile/Bottom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const Bottom = ({ item }: BottomProps) => {
5454
export default Bottom;
5555

5656
function pluralize(noun: string, count: number): string {
57-
return Math.abs(count) === 1 ? noun : `${noun}s`;
57+
return Math.abs(count) <= 1 ? noun : `${noun}s`;
5858
}
5959

6060
const StyledSVG = styled(SVG)((props) => {

0 commit comments

Comments
 (0)