We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit c5d0d785 authored by attilak's avatar attilak

use hasOwnProperty for checking property in json in javascript

parent 7533e396
...@@ -193,7 +193,7 @@ define( ...@@ -193,7 +193,7 @@ define(
} }
}; };
result.isIssuerListAvailable = function () { result.isIssuerListAvailable = function () {
if (typeof value.issuers !== 'undefined' && value.issuers.length > 0) { if (value.hasOwnProperty("issuers") && value.issuers.length > 0) {
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment