Skip to content

Commit

Permalink
chore: reflect ICompositeAddress changes in ProposalDataListItem stru…
Browse files Browse the repository at this point in the history
…cture
  • Loading branch information
thekidnamedkd committed Apr 10, 2024
1 parent 509a479 commit f4ab7c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface IProposalDataListItemStructureBaseProps<TType extends ProposalT
*/
protocolUpdate?: boolean;
/**
* Publisher address and/or ENS name
* Publisher address (and optional ENS name)
*/
publisher: ICompositeAddress;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const ProposalDataListItemStructure: React.FC<IProposalDataListItemStruct

const ongoing = status === 'active' || status === 'challenged' || status === 'vetoed';

const publisherIsConnected = isConnected && connectedAddress?.toLowerCase() === publisher.address?.toLowerCase();
const publisherIsConnected = isConnected && connectedAddress?.toLowerCase() === publisher.address.toLowerCase();
const publisherLabel = publisherIsConnected
? 'You'
: publisher.name ?? addressUtils.truncateAddress(publisher.address as string);
Expand Down

0 comments on commit f4ab7c1

Please sign in to comment.