Skip to content

Commit

Permalink
Fixing prop
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhulen committed Mar 28, 2017
1 parent 72c9761 commit 4c1e13c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/components/setting_item_max.jsx
Expand Up @@ -87,8 +87,10 @@ export default class SettingItemMax extends React.Component {
}

let title;
let titleProp = 'unknownTitle';
if (this.props.title) {
title = <li className='col-sm-12 section-title'>{this.props.title}</li>;
titleProp = this.props.title;
}

return (
Expand All @@ -107,7 +109,7 @@ export default class SettingItemMax extends React.Component {
{clientError}
{submit}
<a
id={Utils.createSafeId(this.props.title) + 'Cancel'}
id={Utils.createSafeId(titleProp) + 'Cancel'}
className='btn btn-sm'
href='#'
onClick={this.props.updateSection}
Expand Down

0 comments on commit 4c1e13c

Please sign in to comment.