Skip to content

Commit 0837f32

Browse files
committed
chore: better name for internal variable in button
1 parent 5f28110 commit 0837f32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/components/discord-button/DiscordButton.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class DiscordButton extends LitElement implements DiscordButtonProps {
136136
this.checkType();
137137
this.checkParentElement();
138138

139-
const isActive = this.url && !this.disabled;
139+
const isActiveLinkButton = this.url && !this.disabled;
140140

141141
const content = html`
142142
${when(this.emoji, () => html`<img src=${this.emoji} alt=${this.emojiName} draggable="true" class="emoji" />`)}
@@ -146,8 +146,8 @@ export class DiscordButton extends LitElement implements DiscordButtonProps {
146146
${when(this.url, () => LaunchIcon())}
147147
`;
148148

149-
if (isActive) {
150-
return html`<a class="secondary" href=${this.url} target="_blank" rel="noopener noreferrer"> ${content} </a>`;
149+
if (isActiveLinkButton) {
150+
return html`<a class="secondary" href=${this.url} target="_blank" rel="noopener noreferrer">${content}</a>`;
151151
}
152152

153153
return html`<div class=${classMap({ [this.type]: true, disabled: this.disabled, hoverable: !this.disabled })}>${content}</div>`;

0 commit comments

Comments
 (0)