Skip to content

Commit

Permalink
Update util.js
Browse files Browse the repository at this point in the history
  • Loading branch information
techillin authored Mar 29, 2021
1 parent 5dd17b1 commit 2fb11bc
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 2fb11bc

Please sign in to comment.