diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-19 10:40:16 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-19 10:40:16 -0400 |
| commit | 0fe195c9272757b49109a92da69038292ba1c5cc (patch) | |
| tree | 0703fafab9b5a4a7d7533a1e240356fcbc01065d | |
| parent | bc044283f419c28417ba265710c9238ba27699fe (diff) | |
let's make sure we only reject version if its lesser not greater
| -rw-r--r-- | www/js/PortalLoginCtrl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 345d6994..1dc9c8b5 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -180,7 +180,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic .then (function(data) { var ld = ZMDataModel.getLogin(); ZMDataModel.zmLog("Got API version: " + data); - if (versionCompare(data,zm.minAppVersion) && (ld.url.indexOf("arjunrc.") == -1) && data !="0.0.0") + if ((versionCompare(data,zm.minAppVersion)==-1) && (ld.url.indexOf("arjunrc.") == -1) && data !="0.0.0") { |
