mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
fix(sync): fix for when data is null, ie. server offline
This commit is contained in:
parent
1f1cd750cb
commit
4a22b1dc57
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ angular.module('userServices', [])
|
|||
//we can't do user=data as it will not update user references in all other angular controllers.
|
||||
|
||||
// the user has been modified from another application, sync up
|
||||
if(data.wasModified) {
|
||||
if(data && data.wasModified) {
|
||||
delete data.wasModified;
|
||||
$rootScope.$emit('userUpdated', user);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue