Skip to content

Commit

Permalink
fix(LabelDescription): nothing was returned (#3898)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Sep 5, 2024
1 parent 6c1093a commit 3452855
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ function CombineMessages({

function LabelDescription({ labelDescription, children }) {
if (!labelDescription) {
return children
return children ?? null
}
return <div className="dnb-forms-field-block__label">{children}</div>
}
Expand Down

0 comments on commit 3452855

Please sign in to comment.