You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by sa...@apache.org on 2016/08/05 14:19:53 UTC

[26/37] incubator-milagro-mfa-js-lib git commit: Check data before store

Check data before store


Project: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/commit/181a7fe5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/tree/181a7fe5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/diff/181a7fe5

Branch: refs/heads/add-documentation
Commit: 181a7fe52fc031626c7f8e22fd12725325d1f1f4
Parents: 38fd0ed
Author: Boyan Bakov <bo...@certivox.com>
Authored: Mon Mar 7 13:38:39 2016 +0200
Committer: Boyan Bakov <bo...@certivox.com>
Committed: Mon Mar 7 13:38:39 2016 +0200

----------------------------------------------------------------------
 lib/mpin.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-milagro-mfa-js-lib/blob/181a7fe5/lib/mpin.js
----------------------------------------------------------------------
diff --git a/lib/mpin.js b/lib/mpin.js
index b6e9f5a..0b9db1f 100644
--- a/lib/mpin.js
+++ b/lib/mpin.js
@@ -786,7 +786,7 @@ var mpinjs = (function () {
       }
     }
 
-    if (isOldData) {
+    if (isOldData && mpinData && "accounts" in mpinData) {
       delete mpinData.accounts;
       this.storeData(mpinData, "mpin");
     }