diff --git a/apps/token/src/routes/rewards/home/__generated__/Rewards.ts b/apps/token/src/routes/rewards/home/__generated__/Rewards.ts index 765e911e3..0619f3bf8 100644 --- a/apps/token/src/routes/rewards/home/__generated__/Rewards.ts +++ b/apps/token/src/routes/rewards/home/__generated__/Rewards.ts @@ -3,8 +3,6 @@ // @generated // This file was automatically generated and should not be edited. -import { AccountType } from "@vegaprotocol/types"; - // ==================================================== // GraphQL query operation: Rewards // ==================================================== @@ -47,10 +45,6 @@ export interface Rewards_party_rewardDetails_rewards_epoch { export interface Rewards_party_rewardDetails_rewards { __typename: "Reward"; - /** - * The type of reward - */ - rewardType: AccountType; /** * The asset this reward is paid in */ diff --git a/apps/token/src/routes/rewards/home/index.tsx b/apps/token/src/routes/rewards/home/index.tsx index 904faeca6..cb1de1a72 100644 --- a/apps/token/src/routes/rewards/home/index.tsx +++ b/apps/token/src/routes/rewards/home/index.tsx @@ -30,7 +30,6 @@ export const REWARDS_QUERY = gql` symbol } rewards { - rewardType asset { id } diff --git a/apps/token/src/routes/rewards/home/reward-info.tsx b/apps/token/src/routes/rewards/home/reward-info.tsx index 97af23656..308cf35a3 100644 --- a/apps/token/src/routes/rewards/home/reward-info.tsx +++ b/apps/token/src/routes/rewards/home/reward-info.tsx @@ -19,6 +19,10 @@ interface RewardInfoProps { rewardAssetId: string; } +// Note: For now the only reward type is Staking. We'll need this from the API +// at a later date +const DEFAULT_REWARD_TYPE = 'Staking'; + export const RewardInfo = ({ data, currVegaKey, @@ -115,7 +119,7 @@ export const RewardTable = ({ reward, delegations }: RewardTableProps) => { {t('rewardType')} - {reward.rewardType} + {DEFAULT_REWARD_TYPE} {t('yourStake')}