Skip to content

Commit

Permalink
Merge pull request #195 from lewisl9029/bugfix-user-creation-notifica…
Browse files Browse the repository at this point in the history
…tion-error

Fixed user creation notifications error
  • Loading branch information
lewisl9029 committed Jul 27, 2015
2 parents 61a5a69 + dd67783 commit 8ef845f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/devices/devices-service.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export default function devices(state, session, cryptography, R, $q, $log,
$interval, $timeout, $ionicPopup) {
$interval, $timeout, $ionicPopup, notification) {
let updateKillFlags = function updateKillFlags() {
let localDeviceId = state.local.devices.get(['deviceInfo', 'id']);

let cloudDevices = state.cloud.devices.get();
let cloudDevices = state.cloud.devices.get() || {};
cloudDevices[localDeviceId] = {};

let killFlagsUpdated = R.map((deviceId) => {
Expand Down Expand Up @@ -77,7 +77,7 @@ export default function devices(state, session, cryptography, R, $q, $log,
return deviceReady
.then(updateKillFlags)
.then(() => listenForKillFlags())
.catch((error) => notifications.error(error, 'Devices Init Error'));
.catch((error) => notification.error(error, 'Devices Init Error'));
};

return {
Expand Down

0 comments on commit 8ef845f

Please sign in to comment.