fix: wallet panic
This commit is contained in:
parent
e5e6d5cddb
commit
a08552338b
4 changed files with 46 additions and 13 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue