mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-22 22:53:29 +08:00
Only attempt to delete this.currency if it actually exists
This commit is contained in:
@@ -86,7 +86,9 @@ function CEconItem(item, description, contextID) {
|
|||||||
this.actions = [];
|
this.actions = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
delete this.currency;
|
if (this.currency) {
|
||||||
|
delete this.currency;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CEconItem.prototype.getImageURL = function() {
|
CEconItem.prototype.getImageURL = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user