diff --git a/src/main.lua b/src/main.lua index a9611053..44a28ebe 100644 --- a/src/main.lua +++ b/src/main.lua @@ -600,7 +600,7 @@ Handlers.add( function(msg) local checkAssertions = function() assert( - utils.isInteger(tonumber(msg.Tags.Quantity) and tonumber(msg.Tags.Quantity) > 0), + utils.isInteger(tonumber(msg.Tags.Quantity)) and tonumber(msg.Tags.Quantity) > 0, "Invalid quantity. Must be integer greater than 0" ) end