Skip to content

Commit 0e01c51

Browse files
committed
fix(election context): make sure isCreator is properly evaluated
refs #49
1 parent 68bf737 commit 0e01c51

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/contexts/election-context.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ const useElectionProvider = ({ electionId, election: process, fetchCensus = fals
108108
? false
109109
: Boolean(isAddressAbleToVote)
110110
: null
111-
const isCreator = election?.process.organizationId === address
111+
112+
const isCreator = election?.process.organizationId?.toLowerCase() === address?.toLowerCase()
112113

113114
return {
114115
election,

0 commit comments

Comments
 (0)