decentralized-identity / decentralized-identity/universal-resolver-frontend
UI breaks if the value of "serviceEndpoint" is an object
- Dominant language
- JavaScript
- Stars
- 25
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
The frontend UI incorrectly assumes that the value of serviceEndpoint is always a string. It should also be able to handle cases where the value is an object (see [Service Endpoints in DID Core](https://w3c.github.io/did-core/#service-endpoints)).
E.g. if a DID document contains this:
```
"service": [{
"id": "PersonalInfo",
"type": "AgentService",
"serviceEndpoint": {
"type": "UserServiceEndpoint"
}
}],
```
then React gives the following error:
```
Objects are not valid as a React child (found: object with keys {type}). If you meant to render a collection of children, use an array instead.
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.