File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ export const Treats = ({
172
172
borderColour ?: string ;
173
173
} ) => {
174
174
if ( treats . length === 0 ) return null ;
175
+
175
176
return (
176
177
< ul
177
178
css = { css `
@@ -181,6 +182,7 @@ export const Treats = ({
181
182
>
182
183
{ treats . map ( ( treat , index ) => {
183
184
const [ link ] = treat . links ;
185
+
184
186
if ( link ?. linkTo === '/crosswords' && link . text ) {
185
187
// Treats that link to /crosswords are special. If any
186
188
// treat has this exact url then an svg of a crossword
@@ -229,7 +231,7 @@ export const Treats = ({
229
231
}
230
232
231
233
return (
232
- < >
234
+ < Fragment key = { index } >
233
235
{ treat . links . map ( ( { text, linkTo } ) => (
234
236
< TextTreat
235
237
key = { linkTo }
@@ -239,7 +241,7 @@ export const Treats = ({
239
241
borderColour = { borderColour }
240
242
/>
241
243
) ) }
242
- </ >
244
+ </ Fragment >
243
245
) ;
244
246
} ) }
245
247
</ ul >
You can’t perform that action at this time.
0 commit comments