check for claimed.length

This commit is contained in:
Sean Yesmunt 2018-07-12 00:43:02 -04:00 committed by Travis Eden
parent 7f2ad622e3
commit c2ec93b133

View file

@ -117,7 +117,7 @@ class RewardsPage extends React.PureComponent<Props> {
} else if (!rewards || rewards.length <= 0) {
return (
<div className="card__content">
{claimed && Object.keys(claimed).length
{claimed && claimed.length
? __(
"You have claimed all available rewards! We're regularly adding more so be sure to check back later."
)