Updates following self review.

This commit is contained in:
Doug
2022-03-17 19:08:25 +00:00
parent d72b815dc1
commit 8a3664b1f2
17 changed files with 86 additions and 61 deletions
@@ -52,14 +52,13 @@ class OnboardingDisplayNameViewModel: OnboardingDisplayNameViewModelType, Onboar
}
}
func update(with error: Error) {
if let error = error as NSError? {
state.bindings.alertInfo = AlertInfo(error: error)
}
func processError(_ error: NSError?) {
state.bindings.alertInfo = AlertInfo(error: error)
}
// MARK: - Private
/// Checks for a display name that exceeds 256 characters and updates the footer error if needed.
private func validateDisplayName() {
if state.bindings.displayName.count > 256 {
guard state.validationErrorMessage == nil else { return }