Skip to content

Commit

Permalink
fix method
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Feb 8, 2025
1 parent 895e511 commit 7587077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nns/src/governance.canister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type { Principal } from "@dfinity/principal";
import {
assertPercentageNumber,
createServices,
fromDefinedNullable,
fromNullable,
isNullish,
nonNullish,
Expand Down Expand Up @@ -256,7 +255,8 @@ export class GovernanceCanister {
response: rawResponse,
canisterId: this.canisterId,
});
const totalPages = fromDefinedNullable(rawResponse.total_pages_available);

const totalPages = fromNullable(rawResponse.total_pages_available) ?? 1n;

return { neurons, totalPages };
};
Expand Down

0 comments on commit 7587077

Please sign in to comment.