Skip to content

Commit

Permalink
fix: make expandatures stakes finalizable in UserHub menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Nortsova committed Feb 3, 2025
1 parent 915cb1a commit 4a19126
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 1 addition & 2 deletions amplify/backend/api/colonycdapp/schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4147,8 +4147,7 @@ type UserStake @model {
)
user: User! @hasOne(fields: ["userAddress"])
colonyAddress: ID!
# TODO: Make this field non-nullable once migration is done
type: UserStakeType
type: UserStakeType!
amount: String!
isClaimed: Boolean!
actionId: ID!
Expand Down
2 changes: 1 addition & 1 deletion docker/colony-cdapp-dev-env-block-ingestor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM colony-cdapp-dev-env/base:latest

ENV BLOCK_INGESTOR_HASH=77acd2cb6ed86877a19807bee2a902a6e846bdbf
ENV BLOCK_INGESTOR_HASH=e01173c6d74ceaa58c58fb47c78958a240ad84fb

# Declare volumes to set up metadata
VOLUME [ "/colonyCDapp/amplify/mock-data" ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { MotionState as NetworkMotionState } from '@colony/colony-js';

import { UserStakeType } from '~gql';
import { type MotionStatesMap } from '~hooks/useNetworkMotionStates.ts';
import { type VotingReputationByColonyAddress } from '~hooks/useNetworkMotionStatesAllColonies.ts';
import { type UserStake } from '~types/graphql.ts';
Expand Down Expand Up @@ -36,7 +37,7 @@ export const getStakeStatus = (
return UserStakeStatus.Claimed;
}

if (stake.action?.expenditureId) {
if (stake.type === UserStakeType.StakedExpenditure) {
return UserStakeStatus.Staking;
}

Expand Down
8 changes: 4 additions & 4 deletions src/graphql/generated.ts

Large diffs are not rendered by default.

0 comments on commit 4a19126

Please sign in to comment.