diff --git a/module/actor.js b/module/actor.js index fcdf4751..9de3911d 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3341,7 +3341,7 @@ export class RdDActor extends Actor { await this.deleteEmbeddedDocuments('Item', [ potionData._id ] ); } else { let update = { _id: potionData._id, 'data.quantite': newQuantite}; - const updated = await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity + await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity } ChatMessage.create({ whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name),