File tree 2 files changed +9
-3
lines changed
src/components/components
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ export const ClubTeaser = props => {
34
34
/>
35
35
</ div >
36
36
< div className = "club-teaser__text" >
37
- < h2 className = "club-teaser__title" id = { title . replace ( / \s / g, "" ) } >
37
+ < h2
38
+ className = "club-teaser__title"
39
+ id = { ( title || "" ) . replace ( / \s / g, "" ) }
40
+ >
38
41
{ title }
39
42
</ h2 >
40
43
< span className = "club-teaser__description" > { subtitle } </ span >
Original file line number Diff line number Diff line change @@ -13,13 +13,16 @@ export default props => {
13
13
< div className = { classes } >
14
14
< ShadowBox >
15
15
< div className = "faq__group-header" >
16
- < h2 title = "title title--x-small" id = { props . header . replace ( / \s / g, "" ) } >
16
+ < h2
17
+ title = "title title--x-small"
18
+ id = { ( props . header || "" ) . replace ( / \s / g, "" ) }
19
+ >
17
20
{ props . header }
18
21
</ h2 >
19
22
</ div >
20
23
< ul
21
24
className = "faq__group-content"
22
- aria-labelledby = { props . header . replace ( / \s / g, "" ) }
25
+ aria-labelledby = { ( props . header || "" ) . replace ( / \s / g, "" ) }
23
26
>
24
27
{ props . children }
25
28
</ ul >
You can’t perform that action at this time.
0 commit comments