From f44da57529add90728e6388acb0bc6e9bbb0d361 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Tue, 29 Jun 2021 15:02:35 +0500 Subject: [PATCH] lint --- .../container/accountsBottomSheetContainer.js | 8 +++----- src/screens/application/container/applicationContainer.js | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.js b/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.js index 0bcbf33b2..e8eaf5bc9 100644 --- a/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.js +++ b/src/components/accountsBottomSheet/container/accountsBottomSheetContainer.js @@ -24,8 +24,7 @@ const AccountsBottomSheetContainer = ({ navigation }) => { ); const currentAccount = useSelector((state) => state.account.currentAccount); const accounts = useSelector((state) => state.account.otherAccounts); - const pinHash = useSelector((state)=>state.application.pin); - + const pinHash = useSelector((state) => state.application.pin); useEffect(() => { if (isVisibleAccountsBottomSheet) { @@ -58,7 +57,7 @@ const AccountsBottomSheetContainer = ({ navigation }) => { (account) => account.username === switchingAccount.username, )[0]; - // if account data has persistet content use that first + // if account data has persistet content use that first //to avoid lag if (accountData.name) { accountData.username = accountData.name; @@ -73,12 +72,11 @@ const AccountsBottomSheetContainer = ({ navigation }) => { _currentAccount.local = realmData[0]; //migreate account to use access token for master key auth type - if (realmData[0].authType === AUTH_TYPE.MASTER_KEY && realmData[0].accessToken === "") { + if (realmData[0].authType === AUTH_TYPE.MASTER_KEY && realmData[0].accessToken === '') { _currentAccount = await migrateToMasterKeyWithAccessToken(_currentAccount, pinHash); } dispatch(updateCurrentAccount(_currentAccount)); - }; return ( diff --git a/src/screens/application/container/applicationContainer.js b/src/screens/application/container/applicationContainer.js index 9efe43ac0..51656dc14 100644 --- a/src/screens/application/container/applicationContainer.js +++ b/src/screens/application/container/applicationContainer.js @@ -812,7 +812,7 @@ class ApplicationContainer extends Component { [_currentAccount.local] = realmData; //migreate account to use access token for master key auth type - if (realmData[0].authType === AUTH_TYPE.MASTER_KEY && realmData[0].accessToken === "") { + if (realmData[0].authType === AUTH_TYPE.MASTER_KEY && realmData[0].accessToken === '') { _currentAccount = await migrateToMasterKeyWithAccessToken(_currentAccount, pinCode); }