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>
)} )}
{totalRewardValue && (
<p> <p>
There are a variety of ways to get credits, including more than{' '} There are a variety of ways to get credits, including more than{' '}
{totalRewardValue ? ( <CreditAmount noStyle amount={totalRewardRounded} />{' '}
<CreditAmount noStyle amount={totalRewardRounded} />
) : (
<span className="credit-amount">{__('?? credits')}</span>
)}{' '}
{__('in free rewards for participating in the LBRY beta.')} {__('in free rewards for participating in the LBRY beta.')}
</p> </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