lower project "I Gave" button into list of contact, and tweak other wording

This commit is contained in:
2024-01-24 20:46:05 -07:00
parent a0911bb0fd
commit 88f869d600
4 changed files with 43 additions and 26 deletions

View File

@@ -279,15 +279,17 @@ export function didInfo(
): string {
if (!did) return "Someone Anonymous";
const myId = R.find(R.equals(did), allMyDids);
if (myId) return `You${myId !== activeDid ? " (Alt ID)" : ""}`;
const contact = R.find((c) => c.did === did, contacts);
return contact
? contact.name || "Contact With No Name"
: isHiddenDid(did)
? "Someone Not In Network"
: "Someone Not In Contacts";
if (contact) {
return contact.name || "Contact With No Name";
} else {
const myId = R.find(R.equals(did), allMyDids);
return myId
? `You${myId !== activeDid ? " (Alt ID)" : ""}`
: isHiddenDid(did)
? "Someone Not In Network"
: "Someone Not In Contacts";
}
}
export interface ResultWithType {