Skip to content

Commit

Permalink
fix: resolve bug from acx summary
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Nov 29, 2023
1 parent 25eb8c6 commit 6bc15e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/useSimplifiedReferralSummary.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import axios from "axios";
import { useQuery } from "react-query";
import { rewardsApiUrl, simplifiedReferralSummaryQueryKey } from "utils";
import { RewardsSummary } from "./useRewardSummary";
import { ACXReferralSummary } from "./useRewardSummary";

export type SimplifiedReferralsSummary = Pick<
RewardsSummary,
ACXReferralSummary,
"tier" | "referralRate"
>;

Expand Down Expand Up @@ -42,7 +42,7 @@ export function useSimplifiedReferralSummary(account?: string) {
* @returns A promise resolving to the referral summary of the user
*/
async function getReferralSummary(account: string) {
return axios.get<RewardsSummary>(
return axios.get<SimplifiedReferralsSummary>(
`${rewardsApiUrl}/referrals/summary?address=${account}&fields[]=referralRate&fields[]=tier`
);
}

0 comments on commit 6bc15e0

Please sign in to comment.