Fix "undefined" in className (#3939)

lolsob-rspec
PFM 2017-06-25 23:02:56 +09:00 committed by Eugen Rochko
parent 7129cca17a
commit f4d0f6954e
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export default class Permalink extends React.PureComponent {
const { href, children, className, ...other } = this.props;
return (
<a href={href} onClick={this.handleClick} {...other} className={'permalink ' + className}>
<a href={href} onClick={this.handleClick} {...other} className={`permalink${className ? ' ' + className : ''}`}>
{children}
</a>
);