Skip to content

Commit

Permalink
fix(Button): Fix error when attempting to access undefined variantVal…
Browse files Browse the repository at this point in the history
…ue (#727)
  • Loading branch information
wise-king-sullyman authored Jul 31, 2024
1 parent e8ab113 commit 93bd081
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ module.exports = {

const isEnumValuePlain =
buttonVariantEnumImport &&
variantValue.object?.name ===
variantValue?.object?.name ===
buttonVariantEnumImport.local.name &&
variantValue.property.name === "plain";
variantValue?.property.name === "plain";
if (variantValue !== "plain" && !isEnumValuePlain) {
return;
}
Expand Down

0 comments on commit 93bd081

Please sign in to comment.