Let to Const

This commit is contained in:
Daniel Kaspo 2017-05-31 00:36:00 -04:00
parent db70e17a67
commit e49e72d250
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export default class TabsOptions extends Component {
{
tabs.map((object, i) => {
// if the window pathname is the same or similar to the tab objects name, set the active toggle
let activeOrNot = (window.location.pathname === object.name || window.location.pathname.substring(1) === object.name) ? 'active' : '';
const activeOrNot = (window.location.pathname === object.name || window.location.pathname.substring(1) === object.name) ? 'active' : '';
return (
<li className={`nav-item ${activeOrNot}`}
key={i} onClick={this.tabClick(i)}>