Skip to content

Commit

Permalink
fix: SDR message handler replyTo
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat authored and mirceanis committed Sep 7, 2020
1 parent be2badb commit f04920f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/daf-selective-disclosure/src/message-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export class SdrMessageHandler extends AbstractMessageHandler {
message.type = MessageTypes.sdr
message.from = message.data.iss

message.replyTo = Array.isArray(message.data.replyTo) ? message.data.replyTo : [message.data.replyTo]
message.replyTo = Array.isArray(message.data.replyTo)
? message.data.replyTo
: message.data.replyTo
? [message.data.replyTo]
: undefined
message.replyUrl = message.data.replyUrl

if (message.data.subject) {
Expand Down

0 comments on commit f04920f

Please sign in to comment.