mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix discounts
This commit is contained in:
parent
c2c3bd67f4
commit
75d3a13688
@ -35,7 +35,7 @@ export class HUDStandaloneAdvantages extends BaseHUDPart {
|
||||
<div class="lowerBar">
|
||||
<button class="steamLinkButton ${A_B_TESTING_LINK_TYPE}">
|
||||
${
|
||||
globalConfig.currentDiscount && globalConfig.currentDiscount.until > new Date().getTime()
|
||||
globalConfig.currentDiscount.active
|
||||
? `<span class='discount'>${globalConfig.currentDiscount.amount}% off!</span>`
|
||||
: ""
|
||||
}
|
||||
|
@ -25,9 +25,9 @@ export class HUDWatermark extends BaseHUDPart {
|
||||
this.linkElement = makeDiv(
|
||||
parent,
|
||||
"ingame_HUD_WatermarkClicker",
|
||||
globalConfig.currentDiscount ? ["withDiscount"] : [""],
|
||||
globalConfig.currentDiscount.active ? ["withDiscount"] : [""],
|
||||
T.ingame.watermark.get_on_steam +
|
||||
(globalConfig.currentDiscount && globalConfig.currentDiscount.until > new Date().getTime()
|
||||
(globalConfig.currentDiscount.active
|
||||
? `<span class='discount'>${globalConfig.currentDiscount.amount}% off!</span>`
|
||||
: "")
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user