Skip to content

Commit

Permalink
Don't suppress setting offer data value if it matches the existing value
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Jul 27, 2024
1 parent 5405fbe commit 290b43f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/classes/TradeOffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] || {};
Expand Down

0 comments on commit 290b43f

Please sign in to comment.