Skip to content

Commit 4f539d4

Browse files
committed
Fix pluralize
Signed-off-by: Trung Nguyen <[email protected]>
1 parent e7fcd3c commit 4f539d4

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)