@@ -11,7 +11,7 @@ extension MeetupId { | |||||
Bus.Debounce(shouldResetText, 0.2, K.M, K.textApp), | Bus.Debounce(shouldResetText, 0.2, K.M, K.textApp), | ||||
Bus.Delay(shouldFinishLoading, 5, K.M, K.finishLoading), | Bus.Delay(shouldFinishLoading, 5, K.M, K.finishLoading), | ||||
Bus.Sync(shouldEnableJoin, K.M, K.isJoinAvailable), | Bus.Sync(shouldEnableJoin, K.M, K.isJoinAvailable), | ||||
Bus.Sync(shouldResetLoading, K.M, K.isLoading) | |||||
Bus.Sync(shouldResetLoading, K.M, K.isLoading), | |||||
Bus.Debounce(shouldManyResetText, 0.2, K.M, K.testTextApp), | Bus.Debounce(shouldManyResetText, 0.2, K.M, K.testTextApp), | ||||
]) | ]) | ||||
@@ -1,5 +1,5 @@ | |||||
import Foundation | import Foundation | ||||
import MPAK | |||||
import MPAKX | |||||
public extension MeetupId { | public extension MeetupId { | ||||
static func shouldEnableJoin(_ c: MeetupIdContext) -> Bool? { | static func shouldEnableJoin(_ c: MeetupIdContext) -> Bool? { | ||||
@@ -65,7 +65,7 @@ public extension MeetupId { | |||||
guard !c.testTextUI.keys.isEmpty else { return nil } | guard !c.testTextUI.keys.isEmpty else { return nil } | ||||
var d = [String: String]() | var d = [String: String]() | ||||
for id in c.testTextUI.keys { | for id in c.testTextUI.keys { | ||||
let text = c.testTextUI.dict[id] | |||||
let text = c.testTextUI.dict[id] ?? "" | |||||
d[id] = formatId(text) | d[id] = formatId(text) | ||||
} | } | ||||
return .init(c.testTextUI.keys, d) | return .init(c.testTextUI.keys, d) | ||||