use transaction_id as the key for the list of claimed rewards

This commit is contained in:
Akinwale Ariwodola 2018-12-12 19:41:56 +01:00
parent bf2b038632
commit 14ec13a2e6

View file

@ -131,9 +131,10 @@ class RewardsPage extends React.PureComponent {
renderClaimedRewards() {
const { claimed } = this.props;
if (claimed && claimed.length) {
const reversed = claimed.reverse();
return (
<View>
{claimed.reverse().map(reward => <RewardCard key={reward.reward_type} reward={reward} />)}
{reversed.map(reward => <RewardCard key={reward.transaction_id} reward={reward} />)}
</View>
);
}