forked from jsnbuchanan/crowd-funder-for-time-pwa
adjust didInfo so we can use DIDs and not identities, removing last of identities in memory
This commit is contained in:
@@ -82,11 +82,8 @@ export function isHiddenDid(did) {
|
||||
/**
|
||||
always returns text, maybe UNNAMED_VISIBLE or UNKNOWN_ENTITY
|
||||
**/
|
||||
export function didInfo(did, activeDid, identifiers, contacts) {
|
||||
const myId: IIdentifier | undefined = R.find(
|
||||
(i) => i.did === did,
|
||||
identifiers,
|
||||
);
|
||||
export function didInfo(did, activeDid, allMyDids, contacts) {
|
||||
const myId: string | undefined = R.find(R.identity, allMyDids);
|
||||
if (myId) {
|
||||
return "You" + (myId.did !== activeDid ? " (Alt ID)" : "");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user