Digital ACT-191 ONEAPP-9314 story: price optional and may have nil

This commit is contained in:
Vasavi Kanamarlapudi 2024-08-15 14:58:58 +05:30
parent 604dfd73a1
commit 1b6e270a76

View File

@ -82,8 +82,11 @@ class PriceLockupViewController: BaseViewController<PriceLockup> {
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