mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-21 21:34:15 +00:00
Client side of Rebirth-related fix: don't remove Wolf Eggs upon drops unlock if user has some already
This commit is contained in:
parent
5becae6170
commit
bbbc9bfe50
1 changed files with 3 additions and 1 deletions
|
|
@ -127,7 +127,9 @@ angular.module('guideServices', []).
|
|||
$rootScope.$watch('user.flags.dropsEnabled', function(after, before) {
|
||||
if (alreadyShown(before, after)) return;
|
||||
var eggs = User.user.items.eggs || {};
|
||||
eggs['Wolf'] = 1; // This is also set on the server
|
||||
if (!eggs) {
|
||||
eggs['Wolf'] = 1; // This is also set on the server
|
||||
}
|
||||
$rootScope.modals.dropsEnabled = true;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue