Skip to content

Commit

Permalink
fix renewals page
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Sep 6, 2024
1 parent ab8b692 commit 479de83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hooks/renewableParas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export const useRenewableParachains = () => {

setStatus(ContextStatus.LOADING);

const renewals = [NetworkType.ROCOCO, NetworkType.WESTEND].includes(network)
? await api.query.broker.potentialRenewals.entries()
: await api.query.broker.allowedRenewals.entries();
const renewals = await api.query.broker.potentialRenewals.entries();
const chains: RenewableParachain[] = [];
for (const [key, value] of renewals) {
const data: any = key.toHuman();
Expand Down

0 comments on commit 479de83

Please sign in to comment.