Skip to content

Commit

Permalink
Update Object.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Pionxzh <spigbbbbb@gmail.com>
  • Loading branch information
mscolnick and pionxzh authored Oct 19, 2024
1 parent f15d108 commit da3b0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataTypes/Object.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function inspectMetadata (value: object) {
if (Object.prototype.hasOwnProperty.call(value, Symbol.toStringTag)) {
name = (value as any)[Symbol.toStringTag]
}
const itemsPluralized = length === 1 ? "Item" : "Items";
const itemsPluralized = length === 1 ? 'Item' : 'Items'
return `${length} ${itemsPluralized}${name ? ` (${name})` : ''}`
}

Expand Down

0 comments on commit da3b0a8

Please sign in to comment.