Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvel-Ib committed Oct 6, 2023
1 parent 6fc5dad commit 74b3813
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/app/src/people/utils/ConnectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export default function ConnectCard(props: ConnectCardProps) {
const showAssignModal = () => setAssignModal(true);

const qrString = person && person?.owner_pubkey ? makeConnectQR(person?.owner_pubkey) : '';
const ownerPubkey = person && person?.owner_pubkey ? `${person.owner_pubkey}` : ''
const routeHint = person && person?.route_hint ? `:${person.route_hint}` : ''

return (
<div onClick={(e: any) => e.stopPropagation()}>
Expand Down Expand Up @@ -124,7 +126,7 @@ export default function ConnectCard(props: ConnectCardProps) {

<>
{person?.owner_pubkey && (
<QrBar value={person?.owner_pubkey} simple style={{ marginTop: 11 }} />
<QrBar value={`${ownerPubkey}${routeHint}`} simple style={{ marginTop: 11 }} />
)}
</>
<Button
Expand Down

0 comments on commit 74b3813

Please sign in to comment.