Skip to content

Commit 449d82a

Browse files
committed
fix: cannot parse current AP of 0
1 parent d9ce523 commit 449d82a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ap-calc/script.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function commandCalculate() {
8787
name: "current ap",
8888
min: 0
8989
});
90-
if (!apCurr) {
90+
if (typeof apCurr != "number") {
9191
throw new Error(
9292
`Could not parse value for current ap: '${args.positionals[0]}'`
9393
);

0 commit comments

Comments
 (0)