fix displayed wallet custody message when signed in

This commit is contained in:
Akinwale Ariwodola 2020-03-31 21:17:21 +01:00
parent 47c6fb5889
commit aa5dd878c0
2 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit cbc4a662e670941b1c82aa6846ac56923c30af2f Subproject commit ff30e7f6a4358fd997a9e6d9f75bfe6959eafcb6

View file

@ -1,14 +1,14 @@
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { selectClaimsBalance, selectSupportsBalance, selectTipsBalance } from 'lbry-redux'; import { selectClaimsBalance, selectSupportsBalance, selectTipsBalance } from 'lbry-redux';
import { makeSelectClientSetting } from 'redux/selectors/settings';
import WalletBalanceExtra from './view'; import WalletBalanceExtra from './view';
import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api
const select = state => ({ const select = state => ({
claimsBalance: selectClaimsBalance(state) || 0, claimsBalance: selectClaimsBalance(state) || 0,
deviceWalletSynced: makeSelectClientSetting(Constants.SETTING_DEVICE_WALLET_SYNCED)(state),
supportsBalance: selectSupportsBalance(state) || 0, supportsBalance: selectSupportsBalance(state) || 0,
tipsBalance: selectTipsBalance(state) || 0, tipsBalance: selectTipsBalance(state) || 0,
}); });
export default connect( export default connect(select, null)(WalletBalanceExtra);
select,
null,
)(WalletBalanceExtra);