We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7568bd commit 1dafd26Copy full SHA for 1dafd26
src/react-chayns-modeswitch/component/ModeSwitch.jsx
@@ -218,7 +218,7 @@ export default class ModeSwitch extends Component {
218
customModes -= 1;
219
}
220
221
- return (show || (show === null && (!ModeSwitch.adminSwitchSupport || modes.length > 2 || customModes))) && chayns.env.user.isAuthenticated;
+ return (show || (show === null && modes.length > 1 && (!ModeSwitch.adminSwitchSupport || modes.length > 2 || customModes))) && chayns.env.user.isAuthenticated;
222
223
224
render() {
0 commit comments