Skip to content

Commit

Permalink
fix: missing sort for ceremony circuits
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjei committed May 19, 2023
1 parent 1304473 commit 819b792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/backend/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export const getCeremonyCircuits = async (ceremonyId: string): Promise<Array<Que

if (!querySnap.docs) logAndThrowError(SPECIFIC_ERRORS.SE_CONTRIBUTE_NO_CEREMONY_CIRCUITS)

return querySnap.docs
return querySnap.docs.sort(
(a: DocumentData, b: DocumentData) => a.data().sequencePosition - b.data().sequencePosition
)
}

/**
Expand Down

0 comments on commit 819b792

Please sign in to comment.