Closed jonegerton closed 7 years ago
Is this.props.rightSidebar && side !== 'right' correct in the line below? Would expect === 'right' on that line instead of !== 'right'
this.props.rightSidebar && side !== 'right'
=== 'right'
!== 'right'
open(side) { if (this.props.leftSidebar && side !== 'right') { this.openLeftSidebar(); } else if (this.props.rightSidebar && side !== 'right') { this.openRightSidebar(); } else { this.close(); } }
Your right, this should be this.props.rightSidebar && side === 'right'. Can you open a PR?
this.props.rightSidebar && side === 'right'
Thanks!
Is
this.props.rightSidebar && side !== 'right'
correct in the line below? Would expect=== 'right'
on that line instead of!== 'right'