adjust earn tips message margin

This commit is contained in:
Akinwale Ariwodola 2020-03-26 14:53:35 +01:00
parent 1fc0159a8b
commit 7e4e08ca30
2 changed files with 9 additions and 2 deletions

View file

@ -73,7 +73,7 @@ class SubscriptionsPage extends React.PureComponent {
Lbryio.getExchangeRates().then(rates => { Lbryio.getExchangeRates().then(rates => {
if (!isNaN(rates.LBC_USD)) { if (!isNaN(rates.LBC_USD)) {
this.setState({ usdExchangeRate: rates.LBC_USD }, () => { this.setState({ usdExchangeRate: rates.LBC_USD }, () => {
if (sdkReady) { if (sdkReady && parseFloat(this.state.usdExchangeRate) > 0) {
this.showRewardsAvailable(); this.showRewardsAvailable();
} }
}); });
@ -102,7 +102,13 @@ class SubscriptionsPage extends React.PureComponent {
}); });
} }
if (sdkReady && this.state.usdExchangeRate > 0 && this.state.showRewardsNag && user && !user.is_reward_approved) { if (
sdkReady &&
parseFloat(this.state.usdExchangeRate) > 0 &&
this.state.showRewardsNag &&
user &&
!user.is_reward_approved
) {
this.showRewardsAvailable(); this.showRewardsAvailable();
} }

View file

@ -462,6 +462,7 @@ const walletStyle = StyleSheet.create({
fontSize: 14, fontSize: 14,
color: Colors.LbryGreen, color: Colors.LbryGreen,
marginTop: 12, marginTop: 12,
marginRight: 16,
}, },
}); });