Skip to content

Commit 64510f7

Browse files
committed
fix: add toString() to prevent title attribute TypeError on non-string values
1 parent 4603828 commit 64510f7

File tree

1 file changed

+1
-1
lines changed
  • src/web-check-live/components/Form

1 file changed

+1
-1
lines changed

‎src/web-check-live/components/Form/Row.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export const ExpandableRow = (props: RowProps) => {
151151
return (
152152
<StyledRow as="li" key={`${row.lbl}-${index}`}>
153153
<span className="lbl" title={row.title?.toString()}>{row.lbl}</span>
154-
<span className="val" title={row.val} onClick={() => copyToClipboard(row.val)}>
154+
<span className="val" title={row.val?.toString()} onClick={() => copyToClipboard(row.val)}>
155155
{formatValue(row.val)}
156156
</span>
157157
{ row.plaintext && <PlainText>{row.plaintext}</PlainText> }

0 commit comments

Comments
 (0)