mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +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 currentAccount = useSelector((state) => state.account.currentAccount);
|
||||||
const accounts = useSelector((state) => state.account.otherAccounts);
|
const accounts = useSelector((state) => state.account.otherAccounts);
|
||||||
const pinHash = useSelector((state)=>state.application.pin);
|
const pinHash = useSelector((state) => state.application.pin);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isVisibleAccountsBottomSheet) {
|
if (isVisibleAccountsBottomSheet) {
|
||||||
@ -73,12 +72,11 @@ const AccountsBottomSheetContainer = ({ navigation }) => {
|
|||||||
_currentAccount.local = realmData[0];
|
_currentAccount.local = realmData[0];
|
||||||
|
|
||||||
//migreate account to use access token for master key auth type
|
//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);
|
_currentAccount = await migrateToMasterKeyWithAccessToken(_currentAccount, pinHash);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(updateCurrentAccount(_currentAccount));
|
dispatch(updateCurrentAccount(_currentAccount));
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -812,7 +812,7 @@ class ApplicationContainer extends Component {
|
|||||||
[_currentAccount.local] = realmData;
|
[_currentAccount.local] = realmData;
|
||||||
|
|
||||||
//migreate account to use access token for master key auth type
|
//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);
|
_currentAccount = await migrateToMasterKeyWithAccessToken(_currentAccount, pinCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user