File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const VotingContextProvider: React.FC<{ children: React.ReactNode }> = ({
48
48
const hookArgs = [ BigInt ( id ?? 0 ) , roundId , voteId ] as const ;
49
49
const isEnabled = ! isUndefined ( roundId ) && ! isUndefined ( voteId ) ;
50
50
51
- // Only call the hook for the specific dispute kit type
51
+ // Add a hook call for each DisputeKit
52
52
const classicVoteResult = useReadDisputeKitClassicIsVoteActive ( {
53
53
query : {
54
54
enabled : isEnabled && disputeKitName === DisputeKits . Classic ,
@@ -81,6 +81,7 @@ export const VotingContextProvider: React.FC<{ children: React.ReactNode }> = ({
81
81
args : hookArgs ,
82
82
} ) ;
83
83
84
+ // Add a return for each DisputeKit
84
85
const hasVoted = useMemo ( ( ) => {
85
86
switch ( disputeKitName ) {
86
87
case DisputeKits . Classic :
You can’t perform that action at this time.
0 commit comments