Skip to content

Commit

Permalink
chore: Remove unused maxNumServices property in useStakingContractInf…
Browse files Browse the repository at this point in the history
…o hook
  • Loading branch information
mohandast52 committed May 31, 2024
1 parent df6c489 commit 79108c8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions frontend/components/store/stackingContractInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const initialState = {
isRewardsAvailable: false,
hasEnoughServiceSlots: false,
canStartAgent: false,
maxNumServices: 0,
};

export const useStakingContractInfo = create<{
Expand All @@ -16,12 +15,8 @@ export const useStakingContractInfo = create<{
hasEnoughServiceSlots: boolean;
canStartAgent: boolean;
fetchStakingContractInfo: () => Promise<void>;
maxNumServices: number;
}>((set) => {
return {
// maxNumServices: null,
// availableRewards: null,
// getServiceIds: null,
...initialState,
isStakingContractInfoLoading: true,
isRewardsAvailable: false,
Expand All @@ -38,7 +33,6 @@ export const useStakingContractInfo = create<{
const canStartAgent = isRewardsAvailable && hasEnoughServiceSlots;

set({
maxNumServices,
isRewardsAvailable,
hasEnoughServiceSlots,
canStartAgent,
Expand Down

0 comments on commit 79108c8

Please sign in to comment.