show empty rewards message on overview page
This commit is contained in:
parent
046d936db1
commit
33e49d86cc
1 changed files with 6 additions and 4 deletions
|
@ -11,12 +11,14 @@ const RewardSummary = props => {
|
|||
<h3>{__("Rewards")}</h3>
|
||||
</div>
|
||||
<div className="card__content">
|
||||
{unclaimedRewardAmount > 0 && (
|
||||
{unclaimedRewardAmount > 0 ? (
|
||||
<p>
|
||||
You have{" "}
|
||||
<CreditAmount amount={unclaimedRewardAmount} precision={8} /> in
|
||||
unclaimed rewards.
|
||||
{__("You have")}{" "}
|
||||
<CreditAmount amount={unclaimedRewardAmount} precision={8} />
|
||||
{" "}{__("in unclaimed rewards")}.
|
||||
</p>
|
||||
) : (
|
||||
<p>{__("There are no rewards available at this time, please check back later")}.</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="card__actions">
|
||||
|
|
Loading…
Reference in a new issue