|
@@ -221,7 +221,7 @@ struct CarbsView: View {
|
|
|
let amountFat = Int(numberFormatter.string(from: fatAmount as NSNumber)!) ?? Int(fatAmount.rounded())
|
|
let amountFat = Int(numberFormatter.string(from: fatAmount as NSNumber)!) ?? Int(fatAmount.rounded())
|
|
|
let amountProtein = Int(numberFormatter.string(from: proteinAmount as NSNumber)!) ??
|
|
let amountProtein = Int(numberFormatter.string(from: proteinAmount as NSNumber)!) ??
|
|
|
Int(proteinAmount.rounded())
|
|
Int(proteinAmount.rounded())
|
|
|
- let note = "⌚️" // Hard-coded note for entries from watch
|
|
|
|
|
|
|
+ let note = "From watch" // Hard-coded note for entries from watch
|
|
|
state.addMeal(amountCarbs, fat: amountFat, protein: amountProtein, note: note)
|
|
state.addMeal(amountCarbs, fat: amountFat, protein: amountProtein, note: note)
|
|
|
}
|
|
}
|
|
|
label: { Text("Save") }
|
|
label: { Text("Save") }
|