From 79108c8741966ae523878e0b3587b0dc3dde5153 Mon Sep 17 00:00:00 2001 From: mohandast52 Date: Fri, 31 May 2024 19:45:47 +0530 Subject: [PATCH] chore: Remove unused maxNumServices property in useStakingContractInfo hook --- frontend/components/store/stackingContractInfo.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/components/store/stackingContractInfo.ts b/frontend/components/store/stackingContractInfo.ts index 955e6977..3dcdff63 100644 --- a/frontend/components/store/stackingContractInfo.ts +++ b/frontend/components/store/stackingContractInfo.ts @@ -7,7 +7,6 @@ const initialState = { isRewardsAvailable: false, hasEnoughServiceSlots: false, canStartAgent: false, - maxNumServices: 0, }; export const useStakingContractInfo = create<{ @@ -16,12 +15,8 @@ export const useStakingContractInfo = create<{ hasEnoughServiceSlots: boolean; canStartAgent: boolean; fetchStakingContractInfo: () => Promise; - maxNumServices: number; }>((set) => { return { - // maxNumServices: null, - // availableRewards: null, - // getServiceIds: null, ...initialState, isStakingContractInfoLoading: true, isRewardsAvailable: false, @@ -38,7 +33,6 @@ export const useStakingContractInfo = create<{ const canStartAgent = isRewardsAvailable && hasEnoughServiceSlots; set({ - maxNumServices, isRewardsAvailable, hasEnoughServiceSlots, canStartAgent,