|
|
@@ -151,14 +151,17 @@ extension LNGameMateListCell: LNOrderManagerNotify {
|
|
|
}
|
|
|
|
|
|
private func updateDiscount() {
|
|
|
- if curItem?.userNo.isMyUid == false,
|
|
|
- let discount = LNOrderManager.shared.discountFor(curItem?.price ?? 0) {
|
|
|
+ guard let curItem else { return }
|
|
|
+ if curItem.userNo.isMyUid == false,
|
|
|
+ let discount = LNOrderManager.shared.discountFor(curItem.price) {
|
|
|
saleView.isHidden = false
|
|
|
discountView.update(1 - discount)
|
|
|
priceLabel.textColor = .init(hex: "#FF6F32")
|
|
|
+ priceLabel.text = (curItem.price * (1 - discount)).toDisplay
|
|
|
} else {
|
|
|
saleView.isHidden = true
|
|
|
priceLabel.textColor = .text_5
|
|
|
+ priceLabel.text = curItem.price.toDisplay
|
|
|
}
|
|
|
}
|
|
|
}
|