diff --git a/app/src/main/java/info/nightscout/client/data/NSProfile.java b/app/src/main/java/info/nightscout/client/data/NSProfile.java index ec5eb42e88..0e2e0451f4 100644 --- a/app/src/main/java/info/nightscout/client/data/NSProfile.java +++ b/app/src/main/java/info/nightscout/client/data/NSProfile.java @@ -137,11 +137,11 @@ public class NSProfile { if (profile != null) { try { units = profile.getString("units"); - return units; + return units.toLowerCase(); } catch (JSONException e) { log.error("Profile not found. Failing over to main JSON"); try { - json.getString("units"); + return json.getString("units").toLowerCase(); } catch (JSONException e1) { e1.printStackTrace(); Crashlytics.log("Profile failover failed too");