Skip to content

Commit

Permalink
fix(web): show-requester-address-for-removal-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Jun 19, 2024
1 parent 16e4324 commit 3942a7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/components/HistoryDisplay/Party/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ interface IParty {

const Party: React.FC<IParty> = ({ request, isRemoval = false }) => {
const [isOpen, toggleModal] = useToggle(false);
const aliasAddress = isRemoval ? request.requester.id : request?.challenger?.id;

return (
<Container>
<label>by</label>
<AliasDisplay address={request?.challenger?.id ?? ""} />
<AliasDisplay address={aliasAddress ?? ""} />
<label>-</label>
<StyledLabel onClick={toggleModal}>
<StyledDoc /> Justification
Expand Down

0 comments on commit 3942a7d

Please sign in to comment.