Skip to content

Commit

Permalink
Clarify, simplify logic here.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Mar 19, 2024
1 parent eefc8c8 commit 9c7a8a0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/src/components/User/UserPreferences.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,7 @@ export default {
return !!Galaxy.session_csrf_token && !this.config.single_user;
},
hasThemes() {
if (this.isConfigLoaded) {
const themes = Object.keys(this.config.themes);
return themes?.length > 1 ?? false;
}
return false;
return this.isConfigLoaded && Object.keys(this.config.themes).length > 1;
},
userPermissionsUrl() {
return withPrefix("/user/permissions");
Expand Down

0 comments on commit 9c7a8a0

Please sign in to comment.