Skip to content

Commit

Permalink
fix: keep previous users' votes
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 23, 2024
1 parent b8ed782 commit 4757b35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/ui/src/composables/useAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export function useAccount() {
if (!account) return;

const network = getNetwork(networkId);
votes.value = await network.api.loadUserVotes(spaceIds, account);
const userVotes = await network.api.loadUserVotes(spaceIds, account);

votes.value = { ...votes.value, ...userVotes };
}

function addPendingVote(proposalId: string) {
Expand Down

0 comments on commit 4757b35

Please sign in to comment.