Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/aave/interface
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 10, 2024
2 parents 9cd9fd4 + 3364b1a commit e39c551
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hooks/useMeritIncentives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export enum MeritAction {
type MeritIncentives = {
totalAPR: number;
actionsAPR: {
[key in MeritAction]: number;
[key in MeritAction]: number | null | undefined;
};
};

Expand Down Expand Up @@ -179,6 +179,10 @@ export const useMeritIncentives = ({

const APR = data.actionsAPR[incentive.action];

if (!APR) {
return null;
}

return {
incentiveAPR: (APR / 100).toString(),
rewardTokenAddress: incentive.rewardTokenAddress,
Expand Down

0 comments on commit e39c551

Please sign in to comment.