mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 19:31:54 +03:00
lint
This commit is contained in:
parent
97109ddc24
commit
f44da57529
@ -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 (
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user