fix: wallet panic

This commit is contained in:
trisua 2025-08-08 14:52:53 -04:00
parent e5e6d5cddb
commit a08552338b
4 changed files with 46 additions and 13 deletions

View file

@ -174,7 +174,7 @@ pub async fn update_price_request(
None => return Json(Error::NotAllowed.into()),
};
if req.price < 25 {
if req.price < 25 && req.price != 0 {
return Json(
Error::MiscError(
"Price is too low, please use a price of 25 coins or more".to_string(),