Skip to content

Commit

Permalink
chore: Removed unneeded checks
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchABus committed Nov 30, 2024
1 parent d7a484e commit dd8985b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FancyButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export class FancyButton extends ButtonContainer

if (activeView)
{
if (!this.options?.ignoreRefitting)
if (!this.options.ignoreRefitting)
{
this._views.textView.scale.set(this._defaultTextScale.x, this._defaultTextScale.y);
}
Expand Down Expand Up @@ -474,7 +474,7 @@ export class FancyButton extends ButtonContainer
return;
}

if (!this.options?.ignoreRefitting)
if (!this.options.ignoreRefitting)
{
this._views.iconView.scale.set(this._defaultIconScale.x, this._defaultIconScale.y);
}
Expand Down

0 comments on commit dd8985b

Please sign in to comment.