From 7e4e08ca30fd107882df4a3c27a5c98604242a8b Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 26 Mar 2020 14:53:35 +0100 Subject: [PATCH] adjust earn tips message margin --- src/page/subscriptions/view.js | 10 ++++++++-- src/styles/wallet.js | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/page/subscriptions/view.js b/src/page/subscriptions/view.js index 7f808a8..50e58e0 100644 --- a/src/page/subscriptions/view.js +++ b/src/page/subscriptions/view.js @@ -73,7 +73,7 @@ class SubscriptionsPage extends React.PureComponent { Lbryio.getExchangeRates().then(rates => { if (!isNaN(rates.LBC_USD)) { this.setState({ usdExchangeRate: rates.LBC_USD }, () => { - if (sdkReady) { + if (sdkReady && parseFloat(this.state.usdExchangeRate) > 0) { 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(); } diff --git a/src/styles/wallet.js b/src/styles/wallet.js index a2fef03..6b037df 100644 --- a/src/styles/wallet.js +++ b/src/styles/wallet.js @@ -462,6 +462,7 @@ const walletStyle = StyleSheet.create({ fontSize: 14, color: Colors.LbryGreen, marginTop: 12, + marginRight: 16, }, });