File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/core/src/components/discord-button Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export class DiscordButton extends LitElement implements DiscordButtonProps {
136
136
this . checkType ( ) ;
137
137
this . checkParentElement ( ) ;
138
138
139
- const isActive = this . url && ! this . disabled ;
139
+ const isActiveLinkButton = this . url && ! this . disabled ;
140
140
141
141
const content = html `
142
142
${ 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 {
146
146
${ when ( this . url , ( ) => LaunchIcon ( ) ) }
147
147
` ;
148
148
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 > ` ;
151
151
}
152
152
153
153
return html `< div class =${ classMap ( { [ this . type ] : true , disabled : this . disabled , hoverable : ! this . disabled } ) } > ${ content } </ div > ` ;
You can’t perform that action at this time.
0 commit comments