Skip to content

Commit

Permalink
Account for edge case where is
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Mar 21, 2024
1 parent 6411866 commit 921ffd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/council-core/src/models/proposal/ReadProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ export class ReadProposal extends Model {
// Ensure we don't try to fetch a block range including blocks that don't
// exist yet.
if (
toBlock &&
latestBlock?.blockNumber &&
typeof toBlock === "bigint" &&
typeof latestBlock?.blockNumber === "bigint" &&
latestBlock.blockNumber < toBlock
) {
toBlock = latestBlock.blockNumber;
Expand Down

0 comments on commit 921ffd2

Please sign in to comment.