fix price
This commit is contained in:
@@ -41,8 +41,7 @@ export function getProductSellPrice(product: Product): number {
|
||||
}
|
||||
|
||||
if (isMeltedTradeGroup(product.group_type)) {
|
||||
const base = (product.price_profit ?? product.price ?? 0)
|
||||
return base - (product.cash_fee_sell ?? 0)
|
||||
return (product.price ?? 0) - (product.cash_fee_sell ?? 0)
|
||||
}
|
||||
|
||||
return getTradeSellPrice(lastPrice.value)
|
||||
|
||||
Reference in New Issue
Block a user