Skip to content

Commit 500a8a3

Browse files
[Resolving Bug #291]: Corrected if block. (#294)
* added vscode to gitignore * changed line 26 to typecheck * removed editor stuff from gitignore * added another `=` sign "prettier"
1 parent 6969626 commit 500a8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commandDetails/coin/update.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const coinUpdateExecuteCommand: SapphireMessageExecuteType = async (client, mess
2323

2424
// Second mandatory argument is amount
2525
const amount = args['amount'];
26-
if (!amount) {
26+
if (typeof amount !== 'number') {
2727
throw new Error('please enter a valid amount to adjust.');
2828
}
2929

0 commit comments

Comments
 (0)