fix: dont show unrelated rewards in gov rewards table

This commit is contained in:
Matthew Russell 2024-02-12 13:32:45 -08:00
parent db5e5ee782
commit b2860121e5
No known key found for this signature in database

View File

@ -83,10 +83,12 @@ export const generateEpochTotalRewardsList = ({
(Number(rewardItem?.amount) || 0) + Number(reward.amount)
).toString();
rewards?.set(reward.rewardType, {
rewardType: reward.rewardType,
amount,
});
if (Object.keys(RowAccountTypes).includes(reward.rewardType)) {
rewards?.set(reward.rewardType, {
rewardType: reward.rewardType,
amount,
});
}
epoch.assetRewards.set(reward.assetId, {
assetId: reward.assetId,