Skip to content

Commit 3080c8f

Browse files
committed
chore: comment tweaking
1 parent 9d3ba90 commit 3080c8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/hooks/useVotingContext.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)