This commit is contained in:
feruz 2021-02-04 12:01:19 +02:00
parent aa0c19692d
commit ba642dee6e
6 changed files with 6 additions and 21 deletions

View File

@ -58,7 +58,7 @@ const AccountsBottomSheetContainer = ({ navigation }) => {
accountData.username = accountData.name;
dispatch(updateCurrentAccount(accountData));
dispatch(isRenderRequired(true));
//dispatch(isRenderRequired(true));
const upToDateCurrentAccount = await switchAccount(accountData.name);
const realmData = await getUserDataWithUsername(accountData.name);
@ -75,7 +75,7 @@ const AccountsBottomSheetContainer = ({ navigation }) => {
_currentAccount.local = realmData[0];
dispatch(updateCurrentAccount(_currentAccount));
dispatch(isRenderRequired(true));
//dispatch(isRenderRequired(true));
}
};

View File

@ -11,7 +11,6 @@ import {
import ActionSheet from 'react-native-actionsheet';
import { renderPostBody } from '@ecency/render-helper';
import { useDispatch, useSelector } from 'react-redux';
import AsyncStorage from '@react-native-community/async-storage';
// Utils
import Formats from './formats/formats';
@ -129,10 +128,6 @@ const MarkdownEditorView = ({
const changeUser = async () => {
dispatch(toggleAccountsBottomSheet(!isVisibleAccountsBottomSheet));
await AsyncStorage.setItem(
'temp-url',
`https://ecency.com/post/@${post.author}/${post.permlink}`,
);
};
// eslint-disable-next-line react-hooks/exhaustive-deps

View File

@ -93,6 +93,7 @@ const PostsContainer = ({
_loadPosts,
changeForceLoadPostState,
username,
feedUsername,
forceLoadPost,
isConnected,
pageType,

View File

@ -164,8 +164,8 @@ const WalletContainer = ({
isHasUnclaimedRewards = _isHasUnclaimedRewards(account[0]);
if (isHasUnclaimedRewards) {
const {
reward_steem_balance: steemBal = account[0].reward_hive_balance,
reward_sbd_balance: sbdBal = account[0].reward_hbd_balance,
reward_hive_balance: steemBal,
reward_hbd_balance: sbdBal,
reward_vesting_balance: vestingBal,
} = account[0];
return claimRewardBalance(currentAccount, pinCode, steemBal, sbdBal, vestingBal);

View File

@ -20,7 +20,6 @@ import VersionNumber from 'react-native-version-number';
import ReceiveSharingIntent from 'react-native-receive-sharing-intent';
import Matomo from 'react-native-matomo-sdk';
import uniqueId from 'react-native-unique-id';
import AsyncStorage from '@react-native-community/async-storage';
// Constants
import AUTH_TYPE from '../../../constants/authType';
@ -205,15 +204,6 @@ class ApplicationContainer extends Component {
isRenderRequire: true,
}),
);
AsyncStorage.getItem('temp-url')
.then((res) => {
if (res) {
this._handleDeepLink(res);
}
})
.catch((e) => {
console.log(e);
});
dispatch(isRenderRequired(false));
}
}
@ -262,7 +252,6 @@ class ApplicationContainer extends Component {
_handleDeepLink = async (url = '') => {
if (!url || url.indexOf('ShareMedia://') >= 0) return;
await AsyncStorage.setItem('temp-url', '');
let routeName;
let params;
let content;

View File

@ -515,7 +515,7 @@ class EditorContainer extends Component {
intl.formatMessage({
id: 'alert.fail',
}),
error.error_description.split(': ')[1] || error.toString(),
error.toString(),
);
}