Skip to content

Commit

Permalink
fix(react): fix dom nesting (eclipse-tractusx#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Rohrmeier authored Jan 20, 2025
1 parent 4d465a3 commit daa5b50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/shared/basic/KeyValueView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ interface KeyValueViewProps {

const renderValue = (value: DataValue, masked: boolean = false) => {
const maskedText = masked ? '*****' : value
return (
return typeof maskedText === 'string' ? (
<Typography
sx={{
fontSize: '14px',
Expand All @@ -54,6 +54,8 @@ const renderValue = (value: DataValue, masked: boolean = false) => {
>
{maskedText}
</Typography>
) : (
<>{maskedText}</>
)
}

Expand Down

0 comments on commit daa5b50

Please sign in to comment.