From 39830593420b939df648db67d9bcaba0e4c9efe7 Mon Sep 17 00:00:00 2001
From: Nouman Tahir <nouman.hawkdev@gmail.com>
Date: Wed, 27 Jul 2022 14:30:58 +0500
Subject: [PATCH] updated new pin check logic

---
 src/screens/pinCode/container/pinCodeContainer.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/screens/pinCode/container/pinCodeContainer.tsx b/src/screens/pinCode/container/pinCodeContainer.tsx
index d90aafe05..d633b8bd9 100644
--- a/src/screens/pinCode/container/pinCodeContainer.tsx
+++ b/src/screens/pinCode/container/pinCodeContainer.tsx
@@ -294,7 +294,7 @@ class PinCodeContainer extends Component {
       }
   
       //migrate data to default pin if encUnlockPin is not set.
-      if (encUnlockPin) {
+      if (!encUnlockPin) {
         await MigrationHelpers.migrateUserEncryption(dispatch, currentAccount, applicationPinCode, this._onRefreshTokenFailed);
       }