diff --git a/packages/interface/src/contexts/Ballot.tsx b/packages/interface/src/contexts/Ballot.tsx index 003a1e7a..5a53aec3 100644 --- a/packages/interface/src/contexts/Ballot.tsx +++ b/packages/interface/src/contexts/Ballot.tsx @@ -25,7 +25,7 @@ export const BallotProvider: React.FC = ({ children }: Ball const amount = !Number.isNaN(Number(x.amount)) ? Number(x.amount) : 0; return sum + (pollData && pollData.mode.toString() === "0" ? amount ** 2 : amount); }, 0), - [], + [pollData], ); const ballotContains = useCallback((id: string) => ballot.votes.find((v) => v.projectId === id), [ballot]); diff --git a/packages/interface/src/contexts/Maci.tsx b/packages/interface/src/contexts/Maci.tsx index bccde6d9..1b642259 100644 --- a/packages/interface/src/contexts/Maci.tsx +++ b/packages/interface/src/contexts/Maci.tsx @@ -147,6 +147,9 @@ export const MaciProvider: React.FC = ({ children }: MaciProv }); setIsLoading(false); break; + case GatekeeperTrait.FreeForAll: + setIsLoading(false); + break; default: break; } @@ -159,7 +162,7 @@ export const MaciProvider: React.FC = ({ children }: MaciProv // for instance with semaphore const isEligibleToVote = useMemo( () => gatekeeperTrait && (gatekeeperTrait === GatekeeperTrait.FreeForAll || Boolean(sgData)) && Boolean(address), - [sgData, address], + [sgData, address, gatekeeperTrait], ); // on load get the key pair from local storage and set the signature message diff --git a/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx b/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx index 1cfd491c..cd41c4fd 100644 --- a/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx +++ b/packages/interface/src/features/ballot/components/ProjectAvatarWithName.tsx @@ -23,7 +23,7 @@ export const ProjectAvatarWithName = ({ return ( - +
{projects?.[0]?.name}