Skip to content

Commit

Permalink
add orig comment back
Browse files Browse the repository at this point in the history
  • Loading branch information
kskandis committed Jul 26, 2024
1 parent 5e5fdb5 commit 723163f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FreeAPS/Sources/Views/TextFieldWithToolBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ extension TextFieldWithToolBar.Coordinator: UITextFieldDelegate {
// Remove thousand separator
let proposedText = proposedTextOriginal.replacingOccurrences(of: decimalFormatter.groupingSeparator, with: "")

// Try to convert proposed text to number
let number = parent.numberFormatter.number(from: proposedText) ?? decimalFormatter.number(from: proposedText)

// Update the binding value if conversion is successful
Expand Down

0 comments on commit 723163f

Please sign in to comment.