mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-01 04:47:41 +01:00
Fix negative prices
This commit is contained in:
parent
919b9728f5
commit
47dc473163
@ -33,7 +33,7 @@ public class PriceUtil {
|
|||||||
if (NumberUtil.isDouble(part)) {
|
if (NumberUtil.isDouble(part)) {
|
||||||
double price = Double.valueOf(part);
|
double price = Double.valueOf(part);
|
||||||
|
|
||||||
if (price == 0) {
|
if (price <= 0) {
|
||||||
return NO_PRICE;
|
return NO_PRICE;
|
||||||
} else {
|
} else {
|
||||||
return price;
|
return price;
|
||||||
|
Loading…
Reference in New Issue
Block a user