Skip to content

Commit 096755c

Browse files
authored
fix link output
1 parent f3fdc60 commit 096755c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Links.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ class Links extends React.Component {
99
Object.values( links )
1010
.map( link => {
1111
key++;
12-
let link;
12+
let linkHtml;
1313

1414
if ( link.rel !== undefined ) {
15-
link = <a href={ link.url } rel={link.rel}>{ link.name }</a>
15+
linkHtml = <a href={ link.url } rel={ link.rel }>{ link.name }</a>
1616
} else {
17-
link = <a href={ link.url }>{ link.name }</a>
17+
linkHtml = <a href={ link.url }>{ link.name }</a>
1818
};
1919
let output = (
2020
<li key={ key } className="links--single">
2121
<span className={ `${ link.prefix } fa-${ link.icon }` }></span>
22-
${ link }
22+
{ linkHtml }
2323
</li>
2424

2525
);

0 commit comments

Comments
 (0)