diff --git a/Instagram/Instagram/AddNameToSignupViewController.swift b/Instagram/Instagram/AddNameToSignupViewController.swift index f3680c3..e130689 100644 --- a/Instagram/Instagram/AddNameToSignupViewController.swift +++ b/Instagram/Instagram/AddNameToSignupViewController.swift @@ -37,7 +37,7 @@ class AddNameToSignupViewController: UIViewController { } @objc func textFieldDidChange(sender: UITextField) { - self.nextButton.isEnabled = sender.hasText ? true : false + self.nextButton.isEnabled = sender.hasText } @IBAction func backButtonDidTap(_ sender: Any) {