Skip to content

Commit

Permalink
fix: use optional chaining in SDR message handler (#561)
Browse files Browse the repository at this point in the history
fixes #560
  • Loading branch information
rkreutzer authored Jun 14, 2021
1 parent a030f0a commit ab24877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/selective-disclosure/src/message-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class SdrMessageHandler extends AbstractMessageHandler {
const meta = message.getLastMetaData()

if (
message.data.type == MessageTypes.sdr &&
message.data.claims
message?.data?.type == MessageTypes.sdr &&
message?.data?.claims
) {
debug('Message type is', MessageTypes.sdr)

Expand Down

0 comments on commit ab24877

Please sign in to comment.