Skip to content

Commit

Permalink
Fix for #76, should use the number formatter to get the edited readin…
Browse files Browse the repository at this point in the history
…g so locale specific formatting is handled
  • Loading branch information
Chris Walters committed Jul 19, 2018
1 parent cbe1509 commit ad3a1ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ - (IBAction)cancel:(id)sender {

- (IBAction)save:(UIButton *)sender {
[self.valueField resignFirstResponder];
[self.model.currentUser setNewValue:@([self.valueField.text floatValue]) inReading:(GLUCReading *)self.editedObject];
[self.model.currentUser setNewValue:[self.numberFormatter numberFromString:self.valueField.text] inReading:(GLUCReading *)self.editedObject];

@try {
[self.model saveReading:(GLUCReading *)self.editedObject fromService:nil];
Expand Down

0 comments on commit ad3a1ed

Please sign in to comment.