From 9a3cf927c00dd68913128cd0bdbedd1dff5e6480 Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Tue, 13 Dec 2016 01:28:48 -0500 Subject: [PATCH] Fixed some more currency detection --- classes/CEconItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/CEconItem.js b/classes/CEconItem.js index 58b8053..6d5dc94 100644 --- a/classes/CEconItem.js +++ b/classes/CEconItem.js @@ -8,7 +8,7 @@ function CEconItem(item, descriptions, contextID) { } } - var isCurrency = (typeof this.is_currency !== 'undefined') ? (!!this.is_currency) : (typeof this.currencyid !== 'undefined'); // I don't want to put this on the object yet; it's nice to have the ids at the top of printed output + var isCurrency = !!(this.is_currency || this.currency) || typeof this.currencyid !== 'undefined'; // I don't want to put this on the object yet; it's nice to have the ids at the top of printed output if (isCurrency) { this.currencyid = this.id = (this.id || this.currencyid);