Skip to content

Commit 7c88f14

Browse files
chore: Aria label neatening
Neatened up instantiation of aria label within FormattedMessage
1 parent 83bf26d commit 7c88f14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/AmendmentForm/AmendmentForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ const AmendmentForm = ({
115115
return (
116116
<PaneMenu>
117117
<FormattedMessage id="ui-licenses.amendments.closePane">
118-
{ariaLabel => (
118+
{([ariaLabel]) => (
119119
<IconButton
120-
aria-label={ariaLabel?.[0]}
120+
aria-label={ariaLabel}
121121
icon="times"
122122
id="close-amendment-form-button"
123123
onClick={handlers.onClose}

0 commit comments

Comments
 (0)