don't show rewards message if no claimable rewards

This commit is contained in:
Sean Yesmunt 2018-05-17 00:09:25 -04:00
parent 8519129211
commit 55209a21cf

View file

@ -25,16 +25,13 @@ const ModalCreditIntro = props => {
can take are limited. can take are limited.
</p> </p>
)} )}
<p> {totalRewardValue && (
There are a variety of ways to get credits, including more than{' '} <p>
{totalRewardValue ? ( There are a variety of ways to get credits, including more than{' '}
<CreditAmount noStyle amount={totalRewardRounded} /> <CreditAmount noStyle amount={totalRewardRounded} />{' '}
) : ( {__('in free rewards for participating in the LBRY beta.')}
<span className="credit-amount">{__('?? credits')}</span> </p>
)}{' '} )}
{__(' in free rewards for participating in the LBRY beta.')}
</p>
<div className="card__actions card__actions--center"> <div className="card__actions card__actions--center">
<Button button="primary" onClick={addBalance} label={__('Get Credits')} /> <Button button="primary" onClick={addBalance} label={__('Get Credits')} />
<Button <Button