🐛 amount 0 made not found

This commit is contained in:
Axel Olausson Holtenäs 2022-10-19 20:59:39 +02:00
parent ce3369ba83
commit 7437fddd84

View file

@ -51,7 +51,7 @@ export default {
if (!guild) throw new Error("Guild not found"); if (!guild) throw new Error("Guild not found");
if (!optionUser) throw new Error("No receiver found"); if (!optionUser) throw new Error("No receiver found");
if (!optionAmount) throw new Error("Amount not found"); if (optionAmount === null) throw new Error("Amount not found");
await transferCredits(guild, user, optionUser, optionAmount); await transferCredits(guild, user, optionUser, optionAmount);