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 }> = ({
4848 const hookArgs = [ BigInt ( id ?? 0 ) , roundId , voteId ] as const ;
4949 const isEnabled = ! isUndefined ( roundId ) && ! isUndefined ( voteId ) ;
5050
51- // Only call the hook for the specific dispute kit type
51+ // Add a hook call for each DisputeKit
5252 const classicVoteResult = useReadDisputeKitClassicIsVoteActive ( {
5353 query : {
5454 enabled : isEnabled && disputeKitName === DisputeKits . Classic ,
@@ -81,6 +81,7 @@ export const VotingContextProvider: React.FC<{ children: React.ReactNode }> = ({
8181 args : hookArgs ,
8282 } ) ;
8383
84+ // Add a return for each DisputeKit
8485 const hasVoted = useMemo ( ( ) => {
8586 switch ( disputeKitName ) {
8687 case DisputeKits . Classic :
You can’t perform that action at this time.
0 commit comments