diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index 286956884b7..285ef96e20a 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -203,13 +203,14 @@ export default class EggGachaUiHandler extends MessageUiHandler { // Expiration timer for the legendary gacha if (gachaType === GachaType.LEGENDARY) { - this.legendaryExpiration.setText(this.getLegendaryGachaTimeLeft()); - this.legendaryExpiration.setFontSize("64px"); - this.legendaryExpiration.setPositionRelative( - gacha, - gacha.width / 2 - this.legendaryExpiration.displayWidth / 2 + 0.3, - gacha.height / 2 + 12.5, - ); + this.legendaryExpiration + .setText(this.getLegendaryGachaTimeLeft()) + .setFontSize("64px") + .setPositionRelative( + gacha, + gacha.width / 2 - this.legendaryExpiration.displayWidth / 2 + 0.3, + gacha.height / 2 + 12.5, + ); gachaContainer.add(this.legendaryExpiration); }