Skip to content

Commit

Permalink
(bugfix): fix ownership table rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipperism committed Oct 8, 2024
1 parent 53d6202 commit 2c99e2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/hyperboard/ownership-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import _ from "lodash";

import "../../styles/scrollbar.module.css";
import { BiChevronRight } from "react-icons/bi";
import { DefaultSponsorMetadataEntity } from "@/types/database-entities";
import { BlueprintTooltip } from "@/components/blueprint-tooltip";
import { useFetchHypercertById } from "@/hooks/useFetchHypercertById";
import { formatAddress } from "@/utils/formatting";
import { isAddress } from "viem";
import { useFetchHyperboardById } from "@/hooks/useFetchHyperboardContents2";

interface OwnershipTableProps {
Expand Down Expand Up @@ -79,6 +77,7 @@ export const OwnershipTable = ({
// Only show every owner once in the overview
.groupBy((owner) => owner.address)
.mapValues((entriesForOwner) => ({
address: entriesForOwner[0].address,
avatar: entriesForOwner[0].avatar,
displayName: entriesForOwner[0].display_name,
total: entriesForOwner.reduce((acc, x) => acc + BigInt(x.units || 0), 0n),
Expand Down

0 comments on commit 2c99e2f

Please sign in to comment.