mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
Unpin Regained Items from Enchanted Armoire (#9766)
This commit is contained in:
parent
6bd90807f3
commit
23dd402e79
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import {
|
|||
NotAuthorized,
|
||||
} from '../libs/errors';
|
||||
import randomVal from '../libs/randomVal';
|
||||
import { removeItemByPath } from './pinnedGearUtils';
|
||||
|
||||
// TODO this is only used on the server
|
||||
// move out of common?
|
||||
|
|
@ -56,6 +57,8 @@ module.exports = function buyArmoire (user, req = {}, analytics) {
|
|||
user.flags.armoireEmpty = true;
|
||||
}
|
||||
|
||||
removeItemByPath(user, `gear.flat.${drop.key}`);
|
||||
|
||||
armoireResp = {
|
||||
type: 'gear',
|
||||
dropKey: drop.key,
|
||||
|
|
|
|||
Loading…
Reference in a new issue