put didInfo names in more places and add copy icons for DIDs & IDs

This commit is contained in:
2024-01-16 18:58:08 -07:00
parent 0eb16d5661
commit 3ebe7bc156
6 changed files with 62 additions and 6 deletions

View File

@@ -160,6 +160,10 @@ export function isHiddenDid(did: string) {
return did === HIDDEN_DID;
}
export function isEmptyOrHiddenDid(did?: string) {
return !did || did === HIDDEN_DID; // catching empty string as well
}
/**
* @return true for any nested string where func(input) === true
*