Skip to content

Commit

Permalink
fix maxcarbs limit disabling buttons fro fat and protein entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnallfot committed Apr 7, 2024
1 parent 9411a3c commit 6cdf65f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LoopFollow/ViewControllers/MealViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ class MealViewController: UIViewController, UITextFieldDelegate, TwilioRequestab
// UITextFieldDelegate method to handle text changes in carbsEntryField
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
// Ensure that the textField being changed is the carbsEntryField
guard textField == carbsEntryField else {
/*guard textField == carbsEntryField else {
return true
}
}*/

// Calculate the new text after the replacement
let newText = (textField.text as NSString?)?.replacingCharacters(in: range, with: string) ?? string
Expand Down

0 comments on commit 6cdf65f

Please sign in to comment.