Closed rzkhosroshahi closed 5 years ago
I think its better to be written like
const calSystem = momentObj ? momentObj.calSystem : 1;
return calSystem === 1 || (moment.justUseJalali && calSystem !== 2);
and also please test it and make sure of it passes the tests.
I think its better to be written like
const calSystem = momentObj ? momentObj.calSystem : 1; return calSystem === 1 || (moment.justUseJalali && calSystem !== 2);
and also please test it and make sure of it passes the tests.
Hi, thanks. I run tests in my machine everything is ok. but I don't know what happens in travis that two tests are failed.
Thanks, It's already published as 3.3.1.
I changed isJalali function and just check momentObj. I test it in my project and solved this #55