commit | ff38b6946e0926f770822b28bcab6b2a3fd4ec7a | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Fri Jul 08 09:30:24 2016 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Fri Jul 08 09:30:24 2016 -0700 |
tree | 9eb6400aa46add19090cd4af40b35b01ccfa9839 | |
parent | e4aa8849a24209f3d46d555088a95bb0e56aaf9f [diff] |
Checking that dates are set before parsing them Change-Id: I13e002a42dd8a69bc608b5426a69d723d8084a3b
diff --git a/mCordPortal/src/app/services/helpers.js b/mCordPortal/src/app/services/helpers.js index 9386dd9..a509f81 100644 --- a/mCordPortal/src/app/services/helpers.js +++ b/mCordPortal/src/app/services/helpers.js
@@ -26,6 +26,11 @@ }; this.stringToTime = (string) => { + + if(string.length === 0){ + return; + } + let jsDate; jsDate = new Date();