Display USD #135
2 changed files with 9 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -462,6 +462,7 @@ const walletStyle = StyleSheet.create({
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: Colors.LbryGreen,
|
color: Colors.LbryGreen,
|
||||||
marginTop: 12,
|
marginTop: 12,
|
||||||
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue