From 290b43fe3fa4d78d0d1bb38ef1ffd107c2e1d2b1 Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Sat, 27 Jul 2024 19:33:50 -0400 Subject: [PATCH] Don't suppress setting offer data value if it matches the existing value https://dev.doctormckay.com/topic/5314-offerdata-method-headache/ --- lib/classes/TradeOffer.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/classes/TradeOffer.js b/lib/classes/TradeOffer.js index b80def2..99c8377 100644 --- a/lib/classes/TradeOffer.js +++ b/lib/classes/TradeOffer.js @@ -127,11 +127,6 @@ TradeOffer.prototype.data = function(key, value) { return; } - // We're setting the value. Check if the value already exists and is set to this value. - if (this.data(key) === value) { - return; // Already set, nothing to do - } - // Make sure pollData has offerData set. pollData.offerData = pollData.offerData || {}; pollData.offerData[this.id] = pollData.offerData[this.id] || {};