File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
client/src/hooks/queries/donors Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,15 @@ export default function useProjectDonors(
4444 ! ! currentEpoch &&
4545 currentEpoch > 1 &&
4646 ( isDecisionWindowOpen === true || epoch !== undefined ) ,
47- queryFn : ( ) => apiGetProjectDonors ( projectAddress , epoch || currentEpoch ! - 1 ) ,
48- queryKey : QUERY_KEYS . projectDonors ( projectAddress , epoch || currentEpoch ! - 1 ) ,
47+ queryFn : ( ) =>
48+ apiGetProjectDonors (
49+ projectAddress ,
50+ epoch ?? ( isDecisionWindowOpen ? currentEpoch ! - 1 : currentEpoch ! ) ,
51+ ) ,
52+ queryKey : QUERY_KEYS . projectDonors (
53+ projectAddress ,
54+ epoch ?? ( isDecisionWindowOpen ? currentEpoch ! - 1 : currentEpoch ! ) ,
55+ ) ,
4956 select : response => mapDataToProjectDonors ( response ) ,
5057 staleTime : Infinity ,
5158 ...options ,
You can’t perform that action at this time.
0 commit comments