Skip to content

Commit

Permalink
Stringify boolean and capitalize
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Laboso committed Jun 28, 2024
1 parent 08a83cf commit babbe65
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ function ConceptDetail() {
</a>
) : (
<Typography color="textPrimary">
{conceptDetail?.extras[key]}
{typeof conceptDetail?.extras[key] === "boolean" ?
String(conceptDetail?.extras[key])[0].toUpperCase() +
String(conceptDetail?.extras[key]).slice(1) : conceptDetail?.extras[key]}
</Typography>
)
) : (
Expand Down

0 comments on commit babbe65

Please sign in to comment.