Adjust upcoming parachain query (#4796)

This commit is contained in:
Jaco Greeff 2021-03-09 21:48:54 +01:00 committed by GitHub
parent b88ec03bd0
commit fd5ed2baef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,9 @@ interface Props {
function Overview ({ className, proposals }: Props): React.ReactElement<Props> {
const { api } = useApi();
const paraIds = useCall<ParaId[]>(api.query.paras?.parachains);
const upcomingIds = useCall<ParaId[]>(api.query.paras?.upcomingParas);
// TODO With event trigger
const upcomingIds = useCall<ParaId[]>(api.query.paras?.upcomingParasGenesis?.keys);
return (
<div className={className}>