mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
v3: misc fixes
This commit is contained in:
@@ -40,6 +40,9 @@ angular.module('habitrpg')
|
||||
} else {
|
||||
$rootScope.$broadcast('responseError', response.data.message);
|
||||
}
|
||||
|
||||
if ($rootScope.User && $rootScope.User.sync) $rootScope.User.sync();
|
||||
|
||||
// Need to reject the prompse so the error is handled correctly
|
||||
if (response.status === 401) {
|
||||
return $q.reject(response);
|
||||
|
||||
Reference in New Issue
Block a user