Skip to content

Commit

Permalink
Merge pull request #181 from techillin/patch-2
Browse files Browse the repository at this point in the history
Update util.js
  • Loading branch information
benct authored Mar 29, 2021
2 parents 7ed9a98 + 2fb11bc commit 2780324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const hideUnavailable = (stateObj, config) =>
config.hide_unavailable &&
(isUnavailable(stateObj) || (config.attribute && stateObj.attributes[config.attribute] === undefined));

export const hasToggle = (stateObj, config) => config.toggle === true && !isUnavailable(stateObj);
export const hasToggle = (stateObj, config) => config.toggle === true;

export const hasGenericSecondaryInfo = (config) => typeof config === 'string' && SECONDARY_INFO_VALUES.includes(config);

Expand Down

0 comments on commit 2780324

Please sign in to comment.