Skip to content

Commit

Permalink
Updated logicals
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye committed Apr 23, 2024
1 parent 42f8a5b commit b4f507c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ module.exports = {
drawerColorVariantEnumImport &&
drawerColorVariantEnumImport.local.name;
const hasPatternFlyEnum =
colorVariantValue &&
colorVariantValue.object &&
colorVariantValue.object.name === drawerColorVariantLocalName;
const hasNoBackgroundValue = colorVariantValue.property
? hasPatternFlyEnum &&
colorVariantValue.property.name === "noBackground"
: colorVariantValue === "no-background";
const hasNoBackgroundValue =
colorVariantValue && colorVariantValue.property
? hasPatternFlyEnum &&
colorVariantValue.property.name === "noBackground"
: colorVariantValue === "no-background";

if (!hasPatternFlyEnum && !hasNoBackgroundValue) {
return;
Expand Down

0 comments on commit b4f507c

Please sign in to comment.