mirror of
https://github.com/strapi/strapi.git
synced 2025-09-20 05:52:08 +00:00

Original code: ```js const listTitle = this.props.match.params.slug === 'languages' || 'databases' ? this.renderListTitle() : ''; ``` Is interpreted as: ```js const listTitle = ( this.props.match.params.slug === 'languages' || 'databases' ) ? this.renderListTitle() : '' ; ``` Been `databases` always been evaluate as `true`, this is the same that: ```js const listTitle = this.renderListTitle(); ``` Clearly is not the intention. I refactor this peace of code with what I think was the real intention; looking just the code, not knowing is this is the desire behavior