Skip to content

Commit

Permalink
UHF-9787: Change if to oneliner format
Browse files Browse the repository at this point in the history
  • Loading branch information
teroelonen committed Apr 17, 2024
1 parent a33abba commit c2ac459
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/js/accordion/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ export default class State {

loadItemState = accordionItemId => {
// Use the cached cookie check result
if (this.AccordionsOpen) {
return true;
}

if (this.AccordionsOpen) return true;
if (!this.site) return false;
return !!this.pageAccordionStates[accordionItemId];
};
Expand Down

0 comments on commit c2ac459

Please sign in to comment.