Skip to content

Commit

Permalink
Update config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Govorunb committed Jun 13, 2024
1 parent d148f89 commit 45a7b6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"redeem_addsignal": {
"id": "redeem_addsignal",
"title": "Add Beacon",
"description": "Adds a beacon ping to the map.",
"description": "Adds a beacon ping to the map. (This one has a chance to fail on purpose)",
"args": [
{
"type": 4,
Expand Down
2 changes: 1 addition & 1 deletion ebs/src/modules/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function validateArgs(config: Config, cart: Cart, logContext: LogMessage): strin
if (arg.type === 1 && parseFloat(value) != parsed) {
return `Argument ${arg.name} is not an integer`;
}
if ((arg.min && parsed < arg.min) || (arg.max && parsed > arg.max)) {
if ((arg.min !== undefined && parsed < arg.min) || (arg.max !== undefined && parsed > arg.max)) {
return `Number ${arg.name} out of range`;
}
break;
Expand Down

0 comments on commit 45a7b6e

Please sign in to comment.