Fix effects helper returning an error when the buttons are disabled
All checks were successful
Test / build (push) Successful in 45s

This commit is contained in:
Ethan Lane 2025-05-28 16:13:21 +01:00
parent 434f162a01
commit 12a9579287

View file

@ -151,7 +151,7 @@ export default class EffectHelper {
AppLogger.LogInfo("EffectHelper", `Created initial user entity for : ${userId}`);
}
if (user.Currency < totalCost) {
if (!disabled && user.Currency < totalCost) {
return `You don't have enough currency to buy this! You have \`${user.Currency} Currency\` and need \`${totalCost} Currency\`!`;
}