Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-torabiv committed Nov 27, 2024
1 parent 0617788 commit 1de489b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/Permissions/Permissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,14 @@ export function Permissions() {
const decodedData = decodeAttestationData(attestation.data);

const keyData = decodedData.find((field) => field.name === 'key');
const provider = decodedData.find((field) => field.name === 'provider');

return {
...attestation,
provider:
typeof provider?.value.value === 'string'
? provider.value.value
: undefined,
key:
typeof keyData?.value.value === 'string'
? keyData.value.value
Expand Down

0 comments on commit 1de489b

Please sign in to comment.