Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
on a fresh install, always return empty data if no stored data.
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Jul 23, 2015
1 parent e16001b commit 1c7530c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/HealthLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ define(function (require, exports, module) {
* @return {Object} Health Data aggregated till now
*/
function getStoredHealthData() {
return PreferencesManager.getViewState(HEALTH_DATA_STATE_KEY);
var storedData = PreferencesManager.getViewState(HEALTH_DATA_STATE_KEY) || {};
return storedData;
}

/**
Expand Down

0 comments on commit 1c7530c

Please sign in to comment.