Skip to content

Commit

Permalink
correction to mmol/L BGReadingView formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulplant committed Jul 30, 2023
1 parent 5e252cc commit 42ea226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xdrip/SwiftUIViews/BgReadingsDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct BgReadingsDetailView: View {

row(title: Texts_BgReadings.timestamp, data: bgReading.timeStamp.toStringInUserLocale(timeStyle: .long, dateStyle: .long))

row(title: Texts_BgReadings.calculatedValue, data: bgReading.calculatedValue.mgdlToMmol(mgdl: isMgDl).bgValueRounded(mgdl: isMgDl).stringWithoutTrailingZeroes + " " + String(isMgDl ? Texts_Common.mgdl : Texts_Common.mmol))
row(title: Texts_BgReadings.calculatedValue, data: bgReading.calculatedValue.mgdlToMmol(mgdl: isMgDl).bgValueRounded(mgdl: isMgDl).bgValuetoString(mgdl: isMgDl) + " " + String(isMgDl ? Texts_Common.mgdl : Texts_Common.mmol))

row(title: Texts_BgReadings.slopeArrow, data: bgReading.slopeArrow())

Expand Down
2 changes: 1 addition & 1 deletion xdrip/SwiftUIViews/BgReadingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct BgReadingsView: View {
visualIndicator(bgRangeDescription: bgReading.bgRangeDescription())
.font(.system(size: 10))

Text(bgReading.calculatedValue.mgdlToMmol(mgdl: isMgDl).bgValueRounded(mgdl: isMgDl).stringWithoutTrailingZeroes)
Text(bgReading.calculatedValue.mgdlToMmol(mgdl: isMgDl).bgValueRounded(mgdl: isMgDl).bgValuetoString(mgdl: isMgDl))
.foregroundColor(.primary)

Text(String(isMgDl ? Texts_Common.mgdl : Texts_Common.mmol))
Expand Down

0 comments on commit 42ea226

Please sign in to comment.