Only attempt to delete this.currency if it actually exists

This commit is contained in:
Alex Corn 2020-06-30 22:24:04 -04:00
parent 211c625da0
commit 2f9b24c447
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -86,7 +86,9 @@ function CEconItem(item, description, contextID) {
this.actions = [];
}
delete this.currency;
if (this.currency) {
delete this.currency;
}
}
CEconItem.prototype.getImageURL = function() {