Skip to content

Commit

Permalink
🐛 fix delegations target array is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
neeboo committed Aug 18, 2022
1 parent 8e2f469 commit a940fe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/connection/src/ic/icAuthClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class AuthClient {
signedDelegation.delegation.expiration,
signedDelegation.delegation.targets && signedDelegation.delegation.targets.length > 0
? signedDelegation.delegation.targets?.map(t => Principal.fromText(t))
: [],
: undefined,
),
signature: signedDelegation.signature.buffer as Signature,
};
Expand All @@ -153,7 +153,7 @@ export class AuthClient {
signedDelegation.delegation.expiration,
signedDelegation.delegation.targets && signedDelegation.delegation.targets.length > 0
? signedDelegation.delegation.targets?.map(t => Principal.fromText(t))
: [],
: undefined,
),
signature: signedDelegation.signature.buffer as Signature,
};
Expand Down

0 comments on commit a940fe5

Please sign in to comment.