diff --git a/src/hooks/useMeritIncentives.ts b/src/hooks/useMeritIncentives.ts index 68e77297d7..8e0dad32e6 100644 --- a/src/hooks/useMeritIncentives.ts +++ b/src/hooks/useMeritIncentives.ts @@ -16,7 +16,7 @@ export enum MeritAction { type MeritIncentives = { totalAPR: number; actionsAPR: { - [key in MeritAction]: number; + [key in MeritAction]: number | null | undefined; }; }; @@ -141,6 +141,10 @@ export const useMeritIncentives = ({ const APR = data.actionsAPR[incentive.action]; + if (!APR) { + return null; + } + return { incentiveAPR: (APR / 100).toString(), rewardTokenAddress: incentive.rewardTokenAddress,