mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-04-02 13:50:21 +08:00
Only attempt to delete this.currency if it actually exists
This commit is contained in:
parent
211c625da0
commit
2f9b24c447
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user