diff --git a/files/routes/hats.py b/files/routes/hats.py index e5105723b5..88f623fb35 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -54,7 +54,7 @@ def buy_hat(v, hat_id): hat.author.procoins += hat.price * 0.1 currency = "marseybux" else: - charged = v.charge_account('coins', price) + charged = v.charge_account('coins', hat.price) if not charged: return {"error": "Not enough coins."}, 400