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 Dec 1, 2024
1 parent 72c94fd commit 100f663
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 @@ -421,7 +421,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 @@ -472,7 +472,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 100f663

Please sign in to comment.