use transaction_id as the key for the list of claimed rewards
This commit is contained in:
parent
bf2b038632
commit
14ec13a2e6
1 changed files with 2 additions and 1 deletions
|
@ -131,9 +131,10 @@ class RewardsPage extends React.PureComponent {
|
||||||
renderClaimedRewards() {
|
renderClaimedRewards() {
|
||||||
const { claimed } = this.props;
|
const { claimed } = this.props;
|
||||||
if (claimed && claimed.length) {
|
if (claimed && claimed.length) {
|
||||||
|
const reversed = claimed.reverse();
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
{claimed.reverse().map(reward => <RewardCard key={reward.reward_type} reward={reward} />)}
|
{reversed.map(reward => <RewardCard key={reward.transaction_id} reward={reward} />)}
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue