Digital ACT-191 ONEAPP-9314 story: price optional and may have nil
This commit is contained in:
parent
604dfd73a1
commit
1b6e270a76
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user