Skip to content

Commit

Permalink
fix token distribution events split projectid
Browse files Browse the repository at this point in the history
  • Loading branch information
peripheralist committed Oct 10, 2023
1 parent a96086a commit a2483e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Trans } from '@lingui/macro'
import EthereumAddress from 'components/EthereumAddress'
import { JuiceboxAccountLink } from 'components/JuiceboxAccountLink'
import V2V3ProjectHandleLink from 'components/v2v3/shared/V2V3ProjectHandleLink'
import { PV_V2 } from 'constants/pv'
import { V1ProjectContext } from 'contexts/v1/Project/V1ProjectContext'
import {
Expand Down Expand Up @@ -62,10 +63,14 @@ export default function DistributeReservedTokensEventElem({
{data?.distributeToReservedTokenSplitEvents.map(e => (
<div key={e.id} className="flex items-baseline justify-between">
<div>
<JuiceboxAccountLink
className="text-grey-900 dark:text-slate-100"
address={e.beneficiary}
/>
{e.splitProjectId ? (
<V2V3ProjectHandleLink projectId={e.splitProjectId} />
) : (
<JuiceboxAccountLink
className="text-grey-900 dark:text-slate-100"
address={e.beneficiary}
/>
)}
</div>

<div className="text-sm text-grey-500 dark:text-grey-300">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ query SplitDistributionsForDistributeReservedTokensEvent(
beneficiary
tokenCount
projectId
splitProjectId
}
}

2 comments on commit a2483e2

@vercel
Copy link

@vercel vercel bot commented on a2483e2 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on a2483e2 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.