Skip to content

Commit

Permalink
Updated logicals
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye committed Apr 11, 2024
1 parent 426cb91 commit 2977e1d
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 2977e1d

Please sign in to comment.