Skip to content

Commit

Permalink
[DO NOT MERGE] Compatibility for subgraph v8.1.1 (#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
peripheralist authored Oct 12, 2023
1 parent a2483e2 commit 984899a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const HistorySubPanel = () => {

const tableHeaders = [t`Cycle #`, t`Withdrawn`, t`Date`]
const hasMore =
data && data.fundingCycles[data.fundingCycles.length - 1].number > 1
data?.fundingCycles.length &&
data.fundingCycles[data.fundingCycles.length - 1].number > 1

return data?.fundingCycles.length || isLoading ? (
<div className="grid min-w-full grid-cols-1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ export function usePastFundingCycles({
return useFundingCyclesQuery({
client,
variables: {
where: { projectId },
where: {
projectId,
endTimestamp_lt: Math.floor(Date.now() / 1000), // Only already ended

Check failure on line 22 in src/components/v2v3/V2V3Project/ProjectDashboard/components/CyclesPayoutsPanel/hooks/usePastFundingCycles.ts

View workflow job for this annotation

GitHub Actions / Compile Typescript

Type '{ projectId: number | undefined; endTimestamp_lt: number; }' is not assignable to type 'FundingCycle_Filter'.
},
orderBy: FundingCycle_OrderBy.number,
orderDirection: OrderDirection.desc,
first: pageSize ?? DEFAULT_PAGE_SIZE,
skip: 1, // skip current cycle
},
})
}

2 comments on commit 984899a

@vercel
Copy link

@vercel vercel bot commented on 984899a Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 984899a Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.