double check units are in profile
This commit is contained in:
parent
5a27f9afa1
commit
ebf56d0032
|
@ -125,6 +125,12 @@ public class Profile {
|
|||
}
|
||||
|
||||
public JSONObject getData() {
|
||||
if (!json.has("units"))
|
||||
try {
|
||||
json.put("units", units);
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue