Ensure useReferenda doesnt cause a white screen (#11328)

This commit is contained in:
Tarik Gul 2025-02-24 14:28:17 -08:00 committed by GitHub
parent b4a194d851
commit 80fb4ad017
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ function group (tracks: TrackDescription[], totalIssuance?: BN, referenda?: Refe
// only ongoing have tracks
const trackInfo = ref.info.isOngoing
? tracks.find(({ id }) => id.eq(ref.info.asOngoing.track))
? tracks.find(({ id }) => id?.eq && id.eq(ref.info.asOngoing.track))
: undefined;
if (trackInfo) {