🐛 as amount can be negative now, conditional must change

This commit is contained in:
EntireTwix 2021-07-05 17:43:25 -07:00
parent cb06dd31dd
commit 4c3b521966

View file

@ -164,7 +164,7 @@ BankResponse Bank::SetBal(const std::string &name, uint32_t amount) noexcept
}
BankResponse Bank::ImpactBal(const std::string &name, int64_t amount) noexcept
{
if (amount)
if (amount == 0)
{
return {k400BadRequest, "Amount cannot be 0"};
}