diff --git a/VDSSample/ViewControllers/PriceLockupViewController.swift b/VDSSample/ViewControllers/PriceLockupViewController.swift index 078e5a1..4a28700 100644 --- a/VDSSample/ViewControllers/PriceLockupViewController.swift +++ b/VDSSample/ViewControllers/PriceLockupViewController.swift @@ -82,8 +82,11 @@ class PriceLockupViewController: BaseViewController { priceTextField .numberPublisher .sink { [weak self] number in - guard let number else { return } - self?.component.price = number.floatValue + if let number { + self?.component.price = number.floatValue + } else { + self?.component.price = nil + } }.store(in: &subscribers) leadingTextField