Fix effects helper returning an error when the buttons are disabled
All checks were successful
Test / build (push) Successful in 45s
All checks were successful
Test / build (push) Successful in 45s
This commit is contained in:
parent
434f162a01
commit
12a9579287
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ export default class EffectHelper {
|
||||||
AppLogger.LogInfo("EffectHelper", `Created initial user entity for : ${userId}`);
|
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\`!`;
|
return `You don't have enough currency to buy this! You have \`${user.Currency} Currency\` and need \`${totalCost} Currency\`!`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue